1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 future,
6 pythonOlder,
7 pytz,
8}:
9
10buildPythonPackage rec {
11 pname = "nsapi";
12 version = "3.0.5";
13 format = "setuptools";
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "aquatix";
18 repo = "ns-api";
19 rev = "v${version}";
20 sha256 = "0i1zkvi4mrhkh1gxzpa54mq8mb76s9nf3jxxhpqia56nkq8f8krb";
21 };
22
23 propagatedBuildInputs = [
24 future
25 pytz
26 ];
27
28 # Project has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "ns_api" ];
32
33 meta = with lib; {
34 description = "Python module to query routes of the Dutch railways";
35 homepage = "https://github.com/aquatix/ns-api/";
36 license = with licenses; [ mit ];
37 maintainers = with maintainers; [ fab ];
38 };
39}