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