2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiofiles,
|
|
|
|
aiohttp,
|
|
|
|
backoff,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-08-06 21:57:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyprosegur";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.0.10";
|
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2021-08-06 21:57:35 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dgomes";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "pyprosegur";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-OHFJhufymD181FODHlIu+O5xh9dfKwEIVQX/zTOC6ks=";
|
2021-08-06 21:57:35 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2021-08-06 21:57:35 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
aiofiles
|
2021-08-06 21:57:35 +00:00
|
|
|
aiohttp
|
|
|
|
backoff
|
|
|
|
click
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pyprosegur" ];
|
2021-08-06 21:57:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to communicate with Prosegur Residential Alarms";
|
|
|
|
homepage = "https://github.com/dgomes/pyprosegur";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/dgomes/pyprosegur/releases/tag/${version}";
|
2021-08-06 21:57:35 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pyprosegur";
|
2021-08-06 21:57:35 +00:00
|
|
|
};
|
|
|
|
}
|