depot/third_party/nixpkgs/pkgs/development/python-modules/gtfs-realtime-bindings/default.nix
Default email b4e89fc316 Project import generated by Copybara.
GitOrigin-RevId: 70088dc29994c32f8520150e34c6e57e8453f895
2021-10-07 22:46:35 +08:00

36 lines
798 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, protobuf
, pythonOlder
}:
buildPythonPackage rec {
pname = "gtfs-realtime-bindings";
version = "0.0.7";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "1vav7ah6gpkpi44rk202bwpl345rydg6n9zibzx5p7gcsblcwd45";
extension = "zip";
};
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/andystewart999/TransportNSW";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}