2020-10-02 12:43:09 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, colorlog, lomond
|
|
|
|
, requests, isPy3k, requests-mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "abodepy";
|
2021-01-01 14:22:05 +00:00
|
|
|
version = "1.2.1";
|
2020-10-02 12:43:09 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MisterWil";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-01 14:22:05 +00:00
|
|
|
sha256 = "0n8gczsml6y6anin1zi8j33sjk1bv9ka02zxpksn2fi1v1h0smap";
|
2020-10-02 12:43:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ colorlog lomond requests ];
|
|
|
|
checkInputs = [ pytestCheckHook requests-mock ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/MisterWil/abodepy";
|
|
|
|
description = "An Abode alarm Python library running on Python 3";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
|
|
};
|
|
|
|
}
|