about summary refs log tree commit diff
path: root/pkgs/development/python-modules/nsapi/default.nix
blob: 4e3a7bc5bf3c5b4de8bf759b79eb5ec01d262793 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, pythonOlder
, pytz
}:

buildPythonPackage rec {
  pname = "nsapi";
  version = "3.0.5";
  format = "setuptools";
  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "aquatix";
    repo = "ns-api";
    rev = "v${version}";
    sha256 = "0i1zkvi4mrhkh1gxzpa54mq8mb76s9nf3jxxhpqia56nkq8f8krb";
  };

  propagatedBuildInputs = [
    future
    pytz
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "ns_api" ];

  meta = with lib; {
    description = "Python module to query routes of the Dutch railways";
    homepage = "https://github.com/aquatix/ns-api/";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}