python3Packages.pygtfs: modernize

This commit is contained in:
Fabian Affolter
2026-04-27 19:02:35 +02:00
parent 441656eda6
commit bd03622ca2
@@ -6,18 +6,17 @@
pytz,
setuptools,
setuptools-scm,
six,
sqlalchemy,
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pygtfs";
version = "0.1.11";
pyproject = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-NaSGjzBBFK3mqHibcKV2gQIQoWn+qZay7KJasjcwxW4=";
};
@@ -29,20 +28,21 @@ buildPythonPackage rec {
dependencies = [
docopt
pytz
six
sqlalchemy
];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "pygtfs/test/test.py" ];
pythonImportsCheck = [ "pygtfs" ];
meta = {
description = "Python module for GTFS";
mainProgram = "gtfs2db";
homepage = "https://github.com/jarondl/pygtfs";
license = with lib.licenses; [ mit ];
changelog = "https://github.com/jarondl/pygtfs/releases/tag/${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "gtfs2db";
};
}
})