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