2021-08-05 22:55:22 +02:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, backoff
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyprosegur";
|
2022-07-16 12:59:28 +02:00
|
|
|
version = "0.0.7";
|
2021-08-05 22:55:22 +02:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dgomes";
|
|
|
|
repo = pname;
|
2022-07-16 12:59:28 +02:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-eP8BFEdAJH2qHqqBXPxTaX1OGFggbWb3517G+gBPxhs=";
|
2021-08-05 22:55:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|