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