depot/third_party/nixpkgs/pkgs/development/python-modules/gtfs-realtime-bindings/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

34 lines
783 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;
sha256 = "sha256-LoztiQRADMk6t+hSCttpNM+mAe2sxvWT/Cy0RIZiu0c=";
};
propagatedBuildInputs = [ protobuf ];
# Tests are not shipped, only a tarball for Java is present
doCheck = false;
pythonImportsCheck = [ "google.transit" ];
meta = with lib; {
description = "Python bindings generated from the GTFS Realtime protocol buffer spec";
homepage = "https://github.com/MobilityData/gtfs-realtime-bindings";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}