87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
37 lines
788 B
Nix
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 ];
|
|
};
|
|
}
|