1{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, colorlog, lomond
2, requests, isPy3k, requests-mock }:
3
4buildPythonPackage rec {
5 pname = "abodepy";
6 version = "1.2.1";
7
8 disabled = !isPy3k;
9
10 src = fetchFromGitHub {
11 owner = "MisterWil";
12 repo = pname;
13 rev = "v${version}";
14 sha256 = "0n8gczsml6y6anin1zi8j33sjk1bv9ka02zxpksn2fi1v1h0smap";
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}