1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, requests 6}: 7 8buildPythonPackage rec { 9 pname = "pytransportnsw"; 10 version = "0.1.1"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.6"; 14 15 src = fetchPypi { 16 pname = "PyTransportNSW"; 17 inherit version; 18 sha256 = "00jklgjirmc58hiaqqc2n2rgixvx91bgrd6lv6hv28k51kid10f3"; 19 }; 20 21 propagatedBuildInputs = [ 22 requests 23 ]; 24 25 # Project has no tests 26 doCheck = false; 27 28 pythonImportsCheck = [ "TransportNSW" ]; 29 30 meta = with lib; { 31 description = "Python module to access Transport NSW information"; 32 homepage = "https://github.com/Dav0815/TransportNSW"; 33 license = with licenses; [ gpl3Only ]; 34 maintainers = with maintainers; [ fab ]; 35 }; 36}