1{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, colorlog, lomond 2, requests, isPy3k, requests-mock }: 3 4buildPythonPackage rec { 5 pname = "abodepy"; 6 version = "1.2.2"; 7 8 disabled = !isPy3k; 9 10 src = fetchFromGitHub { 11 owner = "MisterWil"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "sha256-GrvNCgWGGBbUUONwS18csh4/A0MMkSk5Z6LlDhlQqok="; 15 }; 16 17 propagatedBuildInputs = [ colorlog lomond requests ]; 18 checkInputs = [ pytestCheckHook requests-mock ]; 19 20 meta = with lib; { 21 homepage = "https://github.com/MisterWil/abodepy"; 22 description = "An Abode alarm Python library running on Python 3"; 23 license = licenses.mit; 24 maintainers = with maintainers; [ jamiemagee ]; 25 }; 26}