Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 41 lines 793 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 gtfs-realtime-bindings, 6 httpx, 7 requests, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "pytransportnswv2"; 13 version = "2.0.7"; 14 pyproject = true; 15 16 src = fetchPypi { 17 pname = "PyTransportNSWv2"; 18 inherit version; 19 hash = "sha256-TuLcOjP8ij9+FsaGqeukPFQDS2QRRxFMsXPfrqaq+ec="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ 25 gtfs-realtime-bindings 26 httpx 27 requests 28 ]; 29 30 # Project has no tests 31 doCheck = false; 32 33 pythonImportsCheck = [ "TransportNSWv2" ]; 34 35 meta = with lib; { 36 description = "Python module to access Transport NSW information"; 37 homepage = "https://github.com/andystewart999/TransportNSW"; 38 license = licenses.gpl3Only; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}