1{ lib
2, buildPythonPackage
3, dateparser
4, fetchFromGitHub
5, haversine
6, pytestCheckHook
7, pythonOlder
8, requests
9, xmltodict
10}:
11
12buildPythonPackage rec {
13 pname = "georss-client";
14 version = "0.15";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "exxamalte";
21 repo = "python-georss-client";
22 rev = "v${version}";
23 hash = "sha256-D1ggfEDU+vlFmi1USwdHj1due0PrCQCpKF4zaarHCFs=";
24 };
25
26 propagatedBuildInputs = [
27 haversine
28 xmltodict
29 requests
30 dateparser
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "georss_client"
39 ];
40
41 meta = with lib; {
42 description = "Python library for accessing GeoRSS feeds";
43 homepage = "https://github.com/exxamalte/python-georss-client";
44 license = with licenses; [ asl20 ];
45 maintainers = with maintainers; [ fab ];
46 };
47}