python311Packages.pyprosegur: refactor

This commit is contained in:
Fabian Affolter 2024-03-20 22:29:27 +01:00 committed by GitHub
parent 8f721625be
commit e62b7d78ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,22 +6,27 @@
, click
, fetchFromGitHub
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "pyprosegur";
version = "0.0.10";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dgomes";
repo = pname;
repo = "pyprosegur";
rev = "refs/tags/${version}";
hash = "sha256-OHFJhufymD181FODHlIu+O5xh9dfKwEIVQX/zTOC6ks=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiofiles
aiohttp
@ -38,10 +43,10 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python module to communicate with Prosegur Residential Alarms";
mainProgram = "pyprosegur";
homepage = "https://github.com/dgomes/pyprosegur";
changelog = "https://github.com/dgomes/pyprosegur/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
mainProgram = "pyprosegur";
};
}