2021-02-22 21:28:39 +00:00
|
|
|
{ lib
|
2021-05-28 09:39:13 +00:00
|
|
|
, backoff
|
2021-02-22 21:28:39 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
2022-02-20 05:27:41 +00:00
|
|
|
, pythonOlder
|
2021-02-22 21:28:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yalesmartalarmclient";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "0.3.8";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "domwillcode";
|
|
|
|
repo = "yale-smart-alarm-client";
|
|
|
|
rev = "v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-CWL1uvmUGLaa2Ho0Ka4wTWstebhe1nQr9R821mweE60=";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
backoff
|
|
|
|
requests
|
|
|
|
];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"yalesmartalarmclient"
|
|
|
|
];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to interface with Yale Smart Alarm Systems";
|
2021-05-28 09:39:13 +00:00
|
|
|
homepage = "https://github.com/domwillcode/yale-smart-alarm-client";
|
2021-02-22 21:28:39 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|