1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 gtfs-realtime-bindings,
6 pythonOlder,
7 requests,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "pytransportnswv2";
13 version = "0.3.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-9bpIu+Uc6eFSEGeEfpVwfrhvLekR8qOd571qMnLTpVg=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 gtfs-realtime-bindings
27 requests
28 ];
29
30 # Project has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [ "TransportNSW" ];
34
35 meta = with lib; {
36 description = "Python module to access Transport NSW information";
37 homepage = "https://github.com/andystewart999/TransportNSW";
38 license = licenses.gpl3Only;
39 maintainers = with maintainers; [ fab ];
40 };
41}