1{ lib 2, aiohttp 3, async-timeout 4, buildPythonPackage 5, fetchFromGitHub 6, poetry-core 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "enturclient"; 12 version = "0.2.2"; 13 disabled = pythonOlder "3.8"; 14 format = "pyproject"; 15 16 src = fetchFromGitHub { 17 owner = "hfurubotten"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "1kl44ch8p31pr70yv6na2m0w40frackdwzph9rpb05sc83va701i"; 21 }; 22 23 nativeBuildInputs = [ 24 poetry-core 25 ]; 26 27 propagatedBuildInputs = [ 28 aiohttp 29 async-timeout 30 ]; 31 32 # Project has no tests 33 doCheck = false; 34 35 pythonImportsCheck = [ "enturclient" ]; 36 37 meta = with lib; { 38 description = "Python library for interacting with the Entur.org API"; 39 homepage = "https://github.com/hfurubotten/enturclient"; 40 license = with licenses; [ mit ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}