2021-06-05 14:39:10 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, dateparser
|
|
|
|
, fetchFromGitHub
|
|
|
|
, haversine
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, xmltodict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "georss-client";
|
2021-06-12 14:09:38 +01:00
|
|
|
version = "0.14";
|
2021-06-05 14:39:10 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "exxamalte";
|
|
|
|
repo = "python-georss-client";
|
|
|
|
rev = "v${version}";
|
2021-06-12 14:09:38 +01:00
|
|
|
sha256 = "sha256-rviXXNmDLEVNYOCkqvLT9EXSuVpI5wMlCXnlpUUl1P0=";
|
2021-06-05 14:39:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
haversine
|
|
|
|
xmltodict
|
|
|
|
requests
|
|
|
|
dateparser
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|