2021-04-12 18:23:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
2021-04-12 18:23:04 +00:00
|
|
|
, requests
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
2021-04-12 18:23:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pythonegardia";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "1.0.52";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jeroenterheerdt";
|
|
|
|
repo = "python-egardia";
|
2023-04-12 12:48:02 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-lQ/7tH74MllwFe2kF5OcYSb4rQd+yJU1W6ztG4Z6Y0U=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests, only two test file for manual interaction
|
|
|
|
doCheck = false;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pythonegardia"
|
|
|
|
];
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface with Egardia/Woonveilig alarms";
|
|
|
|
homepage = "https://github.com/jeroenterheerdt/python-egardia";
|
2023-04-12 12:48:02 +00:00
|
|
|
changelog = "https://github.com/jeroenterheerdt/python-egardia/releases/tag/v${version}";
|
2021-04-12 18:23:04 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|