Unverified Commit e154d105 authored by Yifei Sun's avatar Yifei Sun
Browse files

python3Packages.gtfs-station-stop: init at 0.11.7

parent 12f1211c
Loading
Loading
Loading
Loading
+67 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  aiofiles,
  aiohttp,
  gtfs-realtime-bindings,
  requests,
  freezegun,
  pytest-asyncio,
  pytest-cov-stub,
  pytest-httpserver,
  pytestCheckHook,
  python-dotenv,
  syrupy,
}:

buildPythonPackage (finalAttrs: {
  pname = "gtfs-station-stop";
  version = "0.11.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "bcpearce";
    repo = "gtfs-station-stop";
    tag = finalAttrs.version;
    hash = "sha256-Z9pOdLXcNGK1ng7qhzg2J7CvSoDIOczN4P5Es5F2cLs=";
  };

  build-system = [ hatchling ];

  dependencies = [
    aiofiles
    aiohttp
    gtfs-realtime-bindings
    requests
  ];

  # both are added to deps but not used
  pythonRemoveDeps = [
    "asyncio-atexit"
    "coverage-badge"
  ];

  __darwinAllowLocalNetworking = true;

  nativeCheckInputs = [
    freezegun
    pytest-asyncio
    pytest-cov-stub
    pytest-httpserver
    pytestCheckHook
    python-dotenv
    syrupy
  ];

  pythonImportsCheck = [ "gtfs_station_stop" ];

  meta = {
    description = "Python library for Reformatting GTFS data for Station Arrivals";
    homepage = "https://github.com/bcpearce/gtfs-station-stop";
    changelog = "https://github.com/bcpearce/gtfs-station-stop/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.stepbrobd ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -6757,6 +6757,8 @@ self: super: with self; {
  gtfs-realtime-bindings = callPackage ../development/python-modules/gtfs-realtime-bindings { };
  gtfs-station-stop = callPackage ../development/python-modules/gtfs-station-stop { };
  gto = callPackage ../development/python-modules/gto { };
  gtts = callPackage ../development/python-modules/gtts { };