git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.gtfs-realtime-bindings: init at 0.0.7
commit5bfa982206d60391635a697c797f921fa2207f67 authorFabian Affolter <mail@fabian-affolter.ch> dateTue 28 Sep 2021, 12:25 (5 years ago) parentac827d4
2 files changed+38
pkgs/development/python-modules/gtfs-realtime-bindings/default.nix+36 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/gtfs-realtime-bindings/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, protobuf
5+, pythonOlder
6+}:
7+
8+buildPythonPackage 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+}
pkgs/top-level/python-packages.nix+2
@@ -3259,6 +3259,8 @@ in {
32593259 gst-plugins-base = pkgs.gst_all_1.gst-plugins-base;
32603260 };
32613261
3262+ gtfs-realtime-bindings = callPackage ../development/python-modules/gtfs-realtime-bindings { };
3263+
32623264 gtimelog = callPackage ../development/python-modules/gtimelog { };
32633265
32643266 gtts = callPackage ../development/python-modules/gtts { };