mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
51 lines
770 B
Nix
51 lines
770 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, docopt
|
|
, fetchPypi
|
|
, nose
|
|
, pytz
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
, six
|
|
, sqlalchemy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pygtfs";
|
|
version = "0.1.7";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-sGJwtf8DVIrE4hcU3IksnyAAt8yf67UBJIiVILDSsv8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
docopt
|
|
pytz
|
|
six
|
|
sqlalchemy
|
|
];
|
|
|
|
checkInputs = [
|
|
nose
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pygtfs"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for GTFS";
|
|
homepage = "https://github.com/jarondl/pygtfs";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|