diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-09-29 10:55:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 10:55:51 +0200 |
commit | 40f34902e623ad3c130bbdb2a65c53610e933307 (patch) | |
tree | 0bbb18080dbba2fadef3c65d561d23c3c4ee7f34 | |
parent | 4e84d10c6a691093a51a3a25d1b9234bbccc7e6e (diff) | |
parent | b56d66f50710a548a248e757fb62de764998065a (diff) | |
download | nixpkgs-40f34902e623ad3c130bbdb2a65c53610e933307.tar nixpkgs-40f34902e623ad3c130bbdb2a65c53610e933307.tar.gz nixpkgs-40f34902e623ad3c130bbdb2a65c53610e933307.tar.bz2 nixpkgs-40f34902e623ad3c130bbdb2a65c53610e933307.tar.lz nixpkgs-40f34902e623ad3c130bbdb2a65c53610e933307.tar.xz nixpkgs-40f34902e623ad3c130bbdb2a65c53610e933307.tar.zst nixpkgs-40f34902e623ad3c130bbdb2a65c53610e933307.zip |
Merge pull request #139851 from fabaff/bump-aiounifi
-rw-r--r-- | pkgs/development/python-modules/aiounifi/default.nix | 44 |
1 files changed, 31 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/aiounifi/default.nix b/pkgs/development/python-modules/aiounifi/default.nix index 7d6276e53e6..e537222f4df 100644 --- a/pkgs/development/python-modules/aiounifi/default.nix +++ b/pkgs/development/python-modules/aiounifi/default.nix @@ -1,26 +1,44 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k -, aiohttp }: +{ lib +, aiohttp +, aioresponses +, buildPythonPackage +, fetchFromGitHub +, pytest-aiohttp +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: buildPythonPackage rec { pname = "aiounifi"; - version = "26"; + version = "27"; - disabled = ! isPy3k; + disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - sha256 = "3dd0f9fc59edff5d87905ddef3eecc93f974c209d818d3a91061b05925da04af"; + src = fetchFromGitHub { + owner = "Kane610"; + repo = pname; + rev = "v${version}"; + sha256 = "09bxyfrwhqwlfxwgbbnkyd7md9wz05y3fjvc9f0rrj70z7qcicnv"; }; - propagatedBuildInputs = [ aiohttp ]; + propagatedBuildInputs = [ + aiohttp + ]; - # upstream has no tests - doCheck = false; + checkInputs = [ + aioresponses + pytest-aiohttp + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "aiounifi" ]; meta = with lib; { - description = "An asynchronous Python library for communicating with Unifi Controller API"; - homepage = "https://pypi.python.org/pypi/aiounifi/"; - license = licenses.mit; + description = "Python library for communicating with Unifi Controller API"; + homepage = "https://github.com/Kane610/aiounifi"; + license = licenses.mit; maintainers = with maintainers; [ peterhoeg ]; }; } |