1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest-asyncio, 6 pytest-cov-stub, 7 pytestCheckHook, 8 pythonOlder, 9 requests, 10 requests-mock, 11}: 12 13buildPythonPackage rec { 14 pname = "hydrawiser"; 15 version = "0.2"; 16 format = "setuptools"; 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "ptcryan"; 21 repo = "hydrawiser"; 22 rev = "v${version}"; 23 sha256 = "161hazlpvd71xcl2ja86560wm5lnrjv210ki3ji37l6c6gwmhjdj"; 24 }; 25 26 propagatedBuildInputs = [ requests ]; 27 28 nativeCheckInputs = [ 29 pytest-asyncio 30 pytest-cov-stub 31 pytestCheckHook 32 requests 33 requests-mock 34 ]; 35 36 pythonImportsCheck = [ "hydrawiser" ]; 37 38 meta = with lib; { 39 description = "Python library for Hydrawise API"; 40 homepage = "https://github.com/ptcryan/hydrawiser"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}