depot/third_party/nixpkgs/pkgs/development/python-modules/pygtfs/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

48 lines
837 B
Nix

{
lib,
buildPythonPackage,
docopt,
fetchPypi,
pytz,
setuptools,
setuptools-scm,
six,
sqlalchemy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pygtfs";
version = "0.1.9";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-J5vu51OOMabWd8h60PpvvBiCnwQlhEnBywNXxy9hOuA=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
docopt
pytz
six
sqlalchemy
];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "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 ];
};
}