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