2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
docopt,
|
|
|
|
fetchPypi,
|
|
|
|
pytz,
|
2024-07-31 10:19:44 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools-scm,
|
|
|
|
six,
|
|
|
|
sqlalchemy,
|
2024-07-31 10:19:44 +00:00
|
|
|
pytestCheckHook,
|
2021-06-01 10:57:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pygtfs";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.1.9";
|
2024-07-31 10:19:44 +00:00
|
|
|
pyproject = true;
|
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
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2021-06-01 10:57:12 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
dependencies = [
|
2021-06-01 10:57:12 +00:00
|
|
|
docopt
|
|
|
|
pytz
|
|
|
|
six
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pytestFlagsArray = [ "pygtfs/test/test.py" ];
|
2021-06-01 10:57:12 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pygtfs" ];
|
2021-06-01 10:57:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for GTFS";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gtfs2db";
|
2021-06-01 10:57:12 +00:00
|
|
|
homepage = "https://github.com/jarondl/pygtfs";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|