nixpkgs-suyu/pkgs/development/python-modules/georss-client/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

47 lines
878 B
Nix

{ lib
, buildPythonPackage
, dateparser
, fetchFromGitHub
, haversine
, pytestCheckHook
, pythonOlder
, requests
, xmltodict
}:
buildPythonPackage rec {
pname = "georss-client";
version = "0.15";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "exxamalte";
repo = "python-georss-client";
rev = "v${version}";
hash = "sha256-D1ggfEDU+vlFmi1USwdHj1due0PrCQCpKF4zaarHCFs=";
};
propagatedBuildInputs = [
haversine
xmltodict
requests
dateparser
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"georss_client"
];
meta = with lib; {
description = "Python library for accessing GeoRSS feeds";
homepage = "https://github.com/exxamalte/python-georss-client";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}