1{ lib 2, requests 3, buildPythonPackage 4, fetchFromGitHub 5, jsonschema 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "rachiopy"; 11 version = "1.0.3"; 12 13 src = fetchFromGitHub { 14 owner = "rfverbruggen"; 15 repo = pname; 16 rev = version; 17 sha256 = "1d5v9qc7ymzns3ivc5fzwxnxz9sjkhklh57cw05va95mpk5kdskc"; 18 }; 19 20 propagatedBuildInputs = [ requests ]; 21 22 nativeCheckInputs = [ 23 jsonschema 24 pytestCheckHook 25 ]; 26 27 pythonImportsCheck = [ "rachiopy" ]; 28 29 meta = with lib; { 30 description = "Python client for Rachio Irrigation controller"; 31 homepage = "https://github.com/rfverbruggen/rachiopy"; 32 license = with licenses; [ mit ]; 33 maintainers = with maintainers; [ fab ]; 34 }; 35}