python311Packages.georss-ingv-centro-nazionale-terremoti-client: refactor

This commit is contained in:
Fabian Affolter 2024-01-31 22:16:55 +01:00
parent a927ecc6bd
commit 054f836628

View file

@ -4,22 +4,27 @@
, georss-client , georss-client
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, setuptools
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "georss-ingv-centro-nazionale-terremoti-client"; pname = "georss-ingv-centro-nazionale-terremoti-client";
version = "0.6"; version = "0.6";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "exxamalte"; owner = "exxamalte";
repo = "python-georss-ingv-centro-nazionale-terremoti-client"; repo = "python-georss-ingv-centro-nazionale-terremoti-client";
rev = "v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-zqjo70NzpUt5zNEar0P1sl/gMb+ZcS+7GX7QGuFjMYY="; hash = "sha256-zqjo70NzpUt5zNEar0P1sl/gMb+ZcS+7GX7QGuFjMYY=";
}; };
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
georss-client georss-client
]; ];
@ -35,6 +40,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Python library for accessing the INGV Centro Nazionale Terremoti GeoRSS feed"; description = "Python library for accessing the INGV Centro Nazionale Terremoti GeoRSS feed";
homepage = "https://github.com/exxamalte/python-georss-ingv-centro-nazionale-terremoti-client"; homepage = "https://github.com/exxamalte/python-georss-ingv-centro-nazionale-terremoti-client";
changelog = "https://github.com/exxamalte/python-georss-ingv-centro-nazionale-terremoti-client/releases/tag/v${version}";
license = with licenses; [ asl20 ]; license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };