1{ lib
2, buildPythonPackage
3, fetchPypi
4, protobuf
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "gtfs-realtime-bindings";
10 version = "1.0.0";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.6";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-LoztiQRADMk6t+hSCttpNM+mAe2sxvWT/Cy0RIZiu0c=";
18 };
19
20 propagatedBuildInputs = [
21 protobuf
22 ];
23
24 # Tests are not shipped, only a tarball for Java is present
25 doCheck = false;
26
27 pythonImportsCheck = [
28 "google.transit"
29 ];
30
31 meta = with lib; {
32 description = "Python bindings generated from the GTFS Realtime protocol buffer spec";
33 homepage = "https://github.com/MobilityData/gtfs-realtime-bindings";
34 license = with licenses; [ asl20 ];
35 maintainers = with maintainers; [ fab ];
36 };
37}