1{ lib
2, buildPythonPackage
3, docopt
4, fetchPypi
5, nose
6, pytz
7, pythonOlder
8, setuptools-scm
9, six
10, sqlalchemy
11}:
12
13buildPythonPackage rec {
14 pname = "pygtfs";
15 version = "0.1.7";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-sGJwtf8DVIrE4hcU3IksnyAAt8yf67UBJIiVILDSsv8=";
23 };
24
25 nativeBuildInputs = [
26 setuptools-scm
27 ];
28
29 propagatedBuildInputs = [
30 docopt
31 pytz
32 six
33 sqlalchemy
34 ];
35
36 checkInputs = [
37 nose
38 ];
39
40 pythonImportsCheck = [
41 "pygtfs"
42 ];
43
44 meta = with lib; {
45 description = "Python module for GTFS";
46 homepage = "https://github.com/jarondl/pygtfs";
47 license = with licenses; [ mit ];
48 maintainers = with maintainers; [ fab ];
49 };
50}