Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, aiohttp 5, async-timeout 6, lxml 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "pytrafikverket"; 12 version = "0.3.3"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-Lq6YAYScBYRA2ltv+ohWfMasqohCH5zrnCi+sQbQWLI="; 20 }; 21 22 propagatedBuildInputs = [ 23 aiohttp 24 async-timeout 25 lxml 26 ]; 27 28 # Project has no tests 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "pytrafikverket" 33 ]; 34 35 meta = with lib; { 36 description = "Library to get data from the Swedish Transport Administration (Trafikverket) API"; 37 homepage = "https://github.com/endor-force/pytrafikverket"; 38 changelog = "https://github.com/endor-force/pytrafikverket/releases/tag/${version}"; 39 license = with licenses; [ mit ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}