Files
Ihar Hrachyshka cca3b04b44 treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 19:01:23 +01:00

50 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
dateparser,
fetchFromGitHub,
haversine,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
xmltodict,
}:
buildPythonPackage rec {
pname = "georss-client";
version = "0.18";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "exxamalte";
repo = "python-georss-client";
tag = "v${version}";
hash = "sha256-KtndXsNvmjSGwqfKqkGAimHbapIC3I0yi4JuDh6cMzs=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
haversine
xmltodict
requests
dateparser
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "georss_client" ];
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 lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}