nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 52 lines 1.1 kB view raw
1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pyroute2, 9 pytest-asyncio, 10 pytest-cov-stub, 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "unifi-discovery"; 16 version = "1.2.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "bdraco"; 21 repo = "unifi-discovery"; 22 tag = "v${version}"; 23 hash = "sha256-Ea+zxV2GUAaG/BxO103NhOLzzr/TNJaOsynDad2/2VA="; 24 }; 25 26 build-system = [ poetry-core ]; 27 28 dependencies = [ 29 aiohttp 30 pyroute2 31 ]; 32 33 nativeCheckInputs = [ 34 aioresponses 35 pytest-asyncio 36 pytest-cov-stub 37 pytestCheckHook 38 ]; 39 40 pytestFlags = [ "--asyncio-mode=auto" ]; 41 42 pythonImportsCheck = [ "unifi_discovery" ]; 43 44 meta = { 45 description = "Module to discover Unifi devices"; 46 homepage = "https://github.com/bdraco/unifi-discovery"; 47 changelog = "https://github.com/bdraco/unifi-discovery/releases/tag/v${version}"; 48 license = with lib.licenses; [ asl20 ]; 49 maintainers = with lib.maintainers; [ fab ]; 50 platforms = lib.platforms.linux; 51 }; 52}