at master 925 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 jsonschema, 6 pytestCheckHook, 7 pythonOlder, 8 requests, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "rachiopy"; 14 version = "1.1.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "rfverbruggen"; 21 repo = "rachiopy"; 22 tag = version; 23 hash = "sha256-PsdEXNy8vUxba/C00ARhLTQU9gMlChy9XdU20r+Maus="; 24 }; 25 26 nativeBuildInputs = [ setuptools ]; 27 28 propagatedBuildInputs = [ requests ]; 29 30 nativeCheckInputs = [ 31 jsonschema 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "rachiopy" ]; 36 37 meta = with lib; { 38 description = "Python client for Rachio Irrigation controller"; 39 homepage = "https://github.com/rfverbruggen/rachiopy"; 40 changelog = "https://github.com/rfverbruggen/rachiopy/releases/tag/${version}"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}