depot/third_party/nixpkgs/pkgs/development/python-modules/gtfs-realtime-bindings/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

37 lines
788 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 ];
};
}