diff options
Diffstat (limited to 'pkgs/development/python-modules/pydeconz/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pydeconz/default.nix | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/pkgs/development/python-modules/pydeconz/default.nix b/pkgs/development/python-modules/pydeconz/default.nix index f9de6f4ad880..55923513fbfc 100644 --- a/pkgs/development/python-modules/pydeconz/default.nix +++ b/pkgs/development/python-modules/pydeconz/default.nix @@ -1,43 +1,42 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, orjson -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + orjson, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "pydeconz"; - version = "115"; + version = "118"; pyproject = true; - disabled = pythonOlder "3.11"; + disabled = pythonOlder "3.12"; src = fetchFromGitHub { owner = "Kane610"; repo = "deconz"; rev = "refs/tags/v${version}"; - hash = "sha256-NjzONVSJ4GEaIeC5ytnTi8JpZY1yIq3LN8vbMy3n0vs="; + hash = "sha256-CbV/LGj09TfLYvaVGr2+LV76DRkz0kw7qsGbtL5A45g="; }; postPatch = '' substituteInPlace pyproject.toml \ - --replace "--cov=pydeconz --cov-report term-missing" "" \ - --replace "setuptools==" "setuptools>=" \ - --replace "wheel==" "wheel>=" + --replace-fail "--cov=pydeconz --cov-report term-missing" "" \ + --replace-fail "setuptools==" "setuptools>=" \ + --replace-fail "wheel==" "wheel>=" ''; - nativeBuildInputs = [ + build-system = [ setuptools - wheel ]; - propagatedBuildInputs = [ + dependencies = [ aiohttp orjson ]; @@ -48,16 +47,14 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pydeconz" - ]; + pythonImportsCheck = [ "pydeconz" ]; meta = with lib; { description = "Python library wrapping the Deconz REST API"; - mainProgram = "pydeconz"; homepage = "https://github.com/Kane610/deconz"; changelog = "https://github.com/Kane610/deconz/releases/tag/v${version}"; - license = with licenses; [ mit ]; + license = licenses.mit; maintainers = with maintainers; [ fab ]; + mainProgram = "pydeconz"; }; } |