nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 974 B view raw
1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 pytest-asyncio, 8 pytest-raises, 9 pytestCheckHook, 10 xmltodict, 11}: 12 13buildPythonPackage rec { 14 pname = "aioemonitor"; 15 version = "1.0.5"; 16 format = "setuptools"; 17 18 src = fetchFromGitHub { 19 owner = "bdraco"; 20 repo = "aioemonitor"; 21 rev = "v${version}"; 22 sha256 = "0h8zqqy8v8r1fl9bp3m8icr2sy44p0mbfl1hbb0zni17r9r50dhn"; 23 }; 24 25 propagatedBuildInputs = [ 26 aiohttp 27 xmltodict 28 ]; 29 30 nativeCheckInputs = [ 31 aioresponses 32 pytest-asyncio 33 pytest-raises 34 pytestCheckHook 35 ]; 36 37 postPatch = '' 38 substituteInPlace setup.py --replace '"pytest-runner>=5.2",' "" 39 ''; 40 41 pythonImportsCheck = [ "aioemonitor" ]; 42 43 meta = { 44 description = "Python client for SiteSage Emonitor"; 45 mainProgram = "my_example"; 46 homepage = "https://github.com/bdraco/aioemonitor"; 47 license = with lib.licenses; [ asl20 ]; 48 maintainers = with lib.maintainers; [ fab ]; 49 }; 50}