2021-06-01 10:57:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, docopt
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, pytz
|
2022-05-18 14:49:53 +00:00
|
|
|
, pythonOlder
|
2021-06-01 10:57:12 +00:00
|
|
|
, setuptools-scm
|
|
|
|
, six
|
|
|
|
, sqlalchemy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pygtfs";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.1.9";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-06-01 10:57:12 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-J5vu51OOMabWd8h60PpvvBiCnwQlhEnBywNXxy9hOuA=";
|
2021-06-01 10:57:12 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
# https://github.com/jarondl/pygtfs/pull/72
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pytz>=2012d" "pytz"
|
|
|
|
'';
|
|
|
|
|
2021-06-01 10:57:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
docopt
|
|
|
|
pytz
|
|
|
|
six
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-01 10:57:12 +00:00
|
|
|
nose
|
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pygtfs"
|
|
|
|
];
|
2021-06-01 10:57:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for GTFS";
|
|
|
|
homepage = "https://github.com/jarondl/pygtfs";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|