2021-08-06 21:57:35 +00:00
|
|
|
{ lib
|
2022-08-12 12:06:08 +00:00
|
|
|
, aiofiles
|
2021-08-06 21:57:35 +00:00
|
|
|
, aiohttp
|
|
|
|
, backoff
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyprosegur";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.0.8";
|
2021-08-06 21:57:35 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dgomes";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-Spxzyn0gZ1TIHrtt7W0j6VwKnm2Km5vLGZZ//HINyBA=";
|
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;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyprosegur" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to communicate with Prosegur Residential Alarms";
|
|
|
|
homepage = "https://github.com/dgomes/pyprosegur";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|