2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
poetry-core,
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonOlder,
|
2024-09-19 14:19:46 +00:00
|
|
|
requests,
|
2021-02-22 21:28:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yalesmartalarmclient";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "0.4.3";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "domwillcode";
|
|
|
|
repo = "yale-smart-alarm-client";
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-a0rzPEixJXLBfN+kJRPYiJiHY1BKxg/mM14RO3RiVdA=";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ poetry-core ];
|
|
|
|
|
|
|
|
dependencies = [ requests ];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2024-06-05 15:53:02 +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";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/domwillcode/yale-smart-alarm-client/releases/tag/v${version}";
|
2021-02-22 21:28:39 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|