Files
Ihar Hrachyshka cca3b04b44 treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 19:01:23 +01:00

35 lines
779 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
protobuf,
pythonOlder,
}:
buildPythonPackage rec {
pname = "gtfs-realtime-bindings";
version = "1.0.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-LoztiQRADMk6t+hSCttpNM+mAe2sxvWT/Cy0RIZiu0c=";
};
propagatedBuildInputs = [ 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 = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}