2025-07-21 07:33:09 +00:00

49 lines
838 B
Nix

{
lib,
buildPythonPackage,
docopt,
fetchPypi,
pytz,
setuptools,
setuptools-scm,
six,
sqlalchemy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pygtfs";
version = "0.1.10";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-bOG/bXz97eWM77AprQvEgtl9g2fQbbKcwniF1fAC0d0=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
docopt
pytz
six
sqlalchemy
];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "pygtfs/test/test.py" ];
pythonImportsCheck = [ "pygtfs" ];
meta = with lib; {
description = "Python module for GTFS";
mainProgram = "gtfs2db";
homepage = "https://github.com/jarondl/pygtfs";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}