1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 aiohttp, 6 aiozoneinfo, 7 lxml, 8 pythonOlder, 9 poetry-core, 10}: 11 12buildPythonPackage rec { 13 pname = "pytrafikverket"; 14 version = "1.1.1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-yfo36fAVC2LaresQ1QcXq2EGhGtkVzNbWvD6lynhusQ="; 22 }; 23 24 build-system = [ poetry-core ]; 25 26 dependencies = [ 27 aiohttp 28 aiozoneinfo 29 lxml 30 ]; 31 32 # Project has no tests 33 doCheck = false; 34 35 pythonImportsCheck = [ "pytrafikverket" ]; 36 37 meta = with lib; { 38 description = "Library to get data from the Swedish Transport Administration (Trafikverket) API"; 39 homepage = "https://github.com/gjohansson-ST/pytrafikverket"; 40 changelog = "https://github.com/gjohansson-ST/pytrafikverket/releases/tag/v${version}"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}