Merge pull request #314015 from fabaff/pyecowitt-refactor

python312Packages.pyecowitt: refactor
This commit is contained in:
Fabian Affolter 2024-05-23 21:41:04 +02:00 committed by GitHub
commit f1fcf7cdc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,23 +4,26 @@
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pyecowitt";
version = "0.21";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "garbled1";
repo = pname;
rev = version;
sha256 = "5VdVo6j2HZXSCWU4NvfWzyS/KJfVb7N1KSMeu8TvWaQ=";
repo = "pyecowitt";
rev = "refs/tags/${version}";
hash = "sha256-5VdVo6j2HZXSCWU4NvfWzyS/KJfVb7N1KSMeu8TvWaQ=";
};
propagatedBuildInputs = [ aiohttp ];
build-system = [ setuptools ];
dependencies = [ aiohttp ];
# Project thas no tests
doCheck = false;
@ -30,7 +33,8 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python module for the EcoWitt Protocol";
homepage = "https://github.com/garbled1/pyecowitt";
license = with licenses; [ asl20 ];
changelog = "https://github.com/garbled1/pyecowitt/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}