Commit bd03622c authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python3Packages.pygtfs: modernize

parent 441656ed
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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";
  };
}
})