2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
protobuf,
|
|
|
|
pythonOlder,
|
2021-10-07 14:46:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gtfs-realtime-bindings";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "1.0.0";
|
2021-10-07 14:46:35 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-12 12:48:02 +00:00
|
|
|
sha256 = "sha256-LoztiQRADMk6t+hSCttpNM+mAe2sxvWT/Cy0RIZiu0c=";
|
2021-10-07 14:46:35 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ protobuf ];
|
2021-10-07 14:46:35 +00:00
|
|
|
|
|
|
|
# Tests are not shipped, only a tarball for Java is present
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "google.transit" ];
|
2021-10-07 14:46:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings generated from the GTFS Realtime protocol buffer spec";
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "https://github.com/MobilityData/gtfs-realtime-bindings";
|
2021-10-07 14:46:35 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|