summary refs log blame commit diff
path: root/pkgs/development/python-modules/georss-client/default.nix
blob: 2e5fc5da9e83e528ad68ae5fd5ccee8c978bda96 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                          
                   





                                  
                                                                   





















                                                                   
{ lib
, buildPythonPackage
, dateparser
, fetchFromGitHub
, haversine
, pytestCheckHook
, pythonOlder
, requests
, xmltodict
}:

buildPythonPackage rec {
  pname = "georss-client";
  version = "0.14";
  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "exxamalte";
    repo = "python-georss-client";
    rev = "v${version}";
    sha256 = "sha256-rviXXNmDLEVNYOCkqvLT9EXSuVpI5wMlCXnlpUUl1P0=";
  };

  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 ];
  };
}