Merge pull request #139851 from fabaff/bump-aiounifi

This commit is contained in:
Sandro 2021-09-29 10:55:51 +02:00 committed by GitHub
commit 40f34902e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ];
};
}