1{ lib 2, aiohttp 3, aioresponses 4, buildPythonPackage 5, fetchFromGitHub 6, pytest-asyncio 7, pytest-raises 8, pytestCheckHook 9, pythonOlder 10, xmltodict 11}: 12 13buildPythonPackage rec { 14 pname = "aioemonitor"; 15 version = "1.0.5"; 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "bdraco"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "0h8zqqy8v8r1fl9bp3m8icr2sy44p0mbfl1hbb0zni17r9r50dhn"; 23 }; 24 25 propagatedBuildInputs = [ 26 aiohttp 27 xmltodict 28 ]; 29 30 checkInputs = [ 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 = with lib; { 44 description = "Python client for SiteSage Emonitor"; 45 homepage = "https://github.com/bdraco/aioemonitor"; 46 license = with licenses; [ asl20 ]; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}