1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, future 5, pythonOlder 6, pytz 7}: 8 9buildPythonPackage rec { 10 pname = "nsapi"; 11 version = "3.0.5"; 12 disabled = pythonOlder "3.7"; 13 14 src = fetchFromGitHub { 15 owner = "aquatix"; 16 repo = "ns-api"; 17 rev = "v${version}"; 18 sha256 = "0i1zkvi4mrhkh1gxzpa54mq8mb76s9nf3jxxhpqia56nkq8f8krb"; 19 }; 20 21 propagatedBuildInputs = [ 22 future 23 pytz 24 ]; 25 26 # Project has no tests 27 doCheck = false; 28 29 pythonImportsCheck = [ "ns_api" ]; 30 31 meta = with lib; { 32 description = "Python module to query routes of the Dutch railways"; 33 homepage = "https://github.com/aquatix/ns-api/"; 34 license = with licenses; [ mit ]; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}