mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
python310Packages.unifi-discovery: init at 1.1.3
This commit is contained in:
parent
12930206ab
commit
9f5c12212d
2 changed files with 59 additions and 0 deletions
57
pkgs/development/python-modules/unifi-discovery/default.nix
Normal file
57
pkgs/development/python-modules/unifi-discovery/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue