at master 829 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytz, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "nsapi"; 12 version = "3.1.2"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "aquatix"; 19 repo = "ns-api"; 20 tag = "v${version}"; 21 sha256 = "sha256-H8qxqzcGZ52W/HbTuKdnfnaYdZFaxzuUhrniS1zsL2w="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ pytz ]; 27 28 # Project has no tests 29 doCheck = false; 30 31 pythonImportsCheck = [ "ns_api" ]; 32 33 meta = with lib; { 34 description = "Python module to query routes of the Dutch railways"; 35 homepage = "https://github.com/aquatix/ns-api/"; 36 changelog = "https://github.com/aquatix/ns-api/releases/tag/v${version}"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}