python3Packages.georss-client: modernize

This commit is contained in:
Sarah Clark
2025-11-28 10:39:53 -08:00
parent dfb38ac8f3
commit 3dd9929761
@@ -1,14 +1,19 @@
{
lib,
buildPythonPackage,
dateparser,
fetchFromGitHub,
haversine,
pytestCheckHook,
pythonOlder,
requests,
# build-system
setuptools,
# dependencies
dateparser,
haversine,
requests,
xmltodict,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
@@ -16,8 +21,6 @@ buildPythonPackage rec {
version = "0.18";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "exxamalte";
repo = "python-georss-client";
@@ -25,25 +28,25 @@ buildPythonPackage rec {
hash = "sha256-KtndXsNvmjSGwqfKqkGAimHbapIC3I0yi4JuDh6cMzs=";
};
nativeBuildInputs = [ setuptools ];
build-system = [ setuptools ];
propagatedBuildInputs = [
haversine
xmltodict
requests
dependencies = [
dateparser
haversine
requests
xmltodict
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "georss_client" ];
meta = with lib; {
meta = {
broken = lib.versionAtLeast xmltodict.version "1";
description = "Python library for accessing GeoRSS feeds";
homepage = "https://github.com/exxamalte/python-georss-client";
changelog = "https://github.com/exxamalte/python-georss-client/releases/tag/${src.tag}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}