nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 51 lines 1.2 kB view raw
1{ lib 2, aiohttp 3, async-timeout 4, buildPythonPackage 5, fetchFromGitHub 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "aiopvapi"; 12 version = "1.6.19"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.5"; 16 17 src = fetchFromGitHub { 18 owner = "sander76"; 19 repo = "aio-powerview-api"; 20 # no tags on git, no sdist on pypi: https://github.com/sander76/aio-powerview-api/issues/12 21 rev = "89711e2a0cb4640eb458767d289dcfa3acafb10f"; 22 sha256 = "18gbz9rcf183syvxvvhhl62af3b7463rlqxxs49w4m805hkvirdp"; 23 }; 24 25 propagatedBuildInputs = [ 26 aiohttp 27 async-timeout 28 ]; 29 30 checkInputs = [ 31 pytestCheckHook 32 ]; 33 34 postPatch = '' 35 # async_timeout 4.0.0 removes loop, https://github.com/sander76/aio-powerview-api/pull/13 36 # Patch doesn't apply due to different line endings 37 substituteInPlace aiopvapi/helpers/aiorequest.py \ 38 --replace ", loop=self.loop)" ")" 39 ''; 40 41 pythonImportsCheck = [ 42 "aiopvapi" 43 ]; 44 45 meta = with lib; { 46 description = "Python API for the PowerView API"; 47 homepage = "https://github.com/sander76/aio-powerview-api"; 48 license = with licenses; [ bsd3 ]; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}