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