depot/third_party/nixpkgs/pkgs/development/python-modules/gtfs-realtime-bindings/default.nix

35 lines
783 B
Nix
Raw Normal View History

{
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 ];
};
}