Files
nixpkgs/pkgs/development/python-modules/gtfs-realtime-bindings/default.nix
T
2025-12-11 14:50:36 +01:00

36 lines
787 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
protobuf,
setuptools,
}:
buildPythonPackage rec {
pname = "gtfs-realtime-bindings";
version = "2.0.0";
pyproject = true;
src = fetchPypi {
pname = "gtfs_realtime_bindings";
inherit version;
hash = "sha256-hhqdz0xA+aWVIARNhw4zawCJStVji88sSpuZiSNUO0I=";
};
build-system = [ setuptools ];
dependencies = [ protobuf ];
# Tests are not shipped, only a tarball for Java is present
doCheck = false;
pythonImportsCheck = [ "google.transit" ];
meta = {
description = "Python bindings generated from the GTFS Realtime protocol buffer spec";
homepage = "https://github.com/MobilityData/gtfs-realtime-bindings";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}