python310Packages.unifi-discovery: init at 1.1.3

This commit is contained in:
Fabian Affolter 2022-06-03 21:18:16 +02:00
parent 12930206ab
commit 9f5c12212d
2 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,57 @@
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pyroute2
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "unifi-discovery";
version = "1.1.3";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "bdraco";
repo = pname;
rev = "v${version}";
hash = "sha256-++5Rg3cCyH4h6zzEXbsQM5tRnUsnV3RCzuOctcjA/x4=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
pyroute2
];
checkInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov=unifi_discovery --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"unifi_discovery"
];
meta = with lib; {
description = "Module to discover Unifi devices";
homepage = "https://github.com/bdraco/unifi-discovery";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -10780,6 +10780,8 @@ in {
unifi = callPackage ../development/python-modules/unifi { };
unifi-discovery = callPackage ../development/python-modules/unifi-discovery { };
unify = callPackage ../development/python-modules/unify { };
unifiled = callPackage ../development/python-modules/unifiled { };