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