Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / gtfs-realtime-bindings / default.nix
blob99348cb4436338d371d904ca7ca4800436b4ac36
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , protobuf
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "gtfs-realtime-bindings";
10   version = "1.0.0";
11   format = "setuptools";
13   disabled = pythonOlder "3.6";
15   src = fetchPypi {
16     inherit pname version;
17     sha256 = "sha256-LoztiQRADMk6t+hSCttpNM+mAe2sxvWT/Cy0RIZiu0c=";
18   };
20   propagatedBuildInputs = [
21     protobuf
22   ];
24   # Tests are not shipped, only a tarball for Java is present
25   doCheck = false;
27   pythonImportsCheck = [
28     "google.transit"
29   ];
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   };