nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 56 lines 1.1 kB view raw
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pytest-asyncio, 9 pytest-cov-stub, 10 pytestCheckHook, 11 yarl, 12}: 13 14buildPythonPackage rec { 15 pname = "adguardhome"; 16 version = "0.8.1"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "frenck"; 21 repo = "python-${pname}"; 22 tag = "v${version}"; 23 hash = "sha256-pc7UfR/0mQZ98FyomQErz5hePHy6KE2h9UhJ9lFGtFA="; 24 }; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml \ 28 --replace-fail '"0.0.0"' '"${version}"' 29 ''; 30 31 build-system = [ poetry-core ]; 32 33 dependencies = [ 34 aiohttp 35 yarl 36 ]; 37 38 __darwinAllowLocalNetworking = true; 39 40 nativeCheckInputs = [ 41 aresponses 42 pytest-asyncio 43 pytest-cov-stub 44 pytestCheckHook 45 ]; 46 47 pythonImportsCheck = [ "adguardhome" ]; 48 49 meta = { 50 description = "Python client for the AdGuard Home API"; 51 homepage = "https://github.com/frenck/python-adguardhome"; 52 changelog = "https://github.com/frenck/python-adguardhome/releases/tag/v${version}"; 53 license = lib.licenses.mit; 54 maintainers = with lib.maintainers; [ jamiemagee ]; 55 }; 56}