at 24.11-pre 62 lines 1.3 kB view raw
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pythonRelaxDepsHook, 9 pythonOlder, 10 pytest-asyncio, 11 pytestCheckHook, 12 pytz, 13}: 14 15buildPythonPackage rec { 16 pname = "odp-amsterdam"; 17 version = "6.0.1"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.11"; 21 22 src = fetchFromGitHub { 23 owner = "klaasnicolaas"; 24 repo = "python-odp-amsterdam"; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-teLjiclkbjlG226gMUgqc2IUEWqKcSm6xIekw+AQPU4="; 27 }; 28 29 postPatch = '' 30 substituteInPlace pyproject.toml \ 31 --replace-fail '"0.0.0"' '"${version}"' 32 sed -i '/addopts/d' pyproject.toml 33 ''; 34 35 nativeBuildInputs = [ 36 poetry-core 37 pythonRelaxDepsHook 38 ]; 39 40 pythonRelaxDeps = [ "pytz" ]; 41 42 propagatedBuildInputs = [ 43 aiohttp 44 pytz 45 ]; 46 47 nativeCheckInputs = [ 48 aresponses 49 pytest-asyncio 50 pytestCheckHook 51 ]; 52 53 pythonImportsCheck = [ "odp_amsterdam" ]; 54 55 meta = with lib; { 56 description = "Python client for getting garage occupancy in Amsterdam"; 57 homepage = "https://github.com/klaasnicolaas/python-odp-amsterdam"; 58 changelog = "https://github.com/klaasnicolaas/python-odp-amsterdam/releases/tag/v${version}"; 59 license = licenses.mit; 60 maintainers = with maintainers; [ fab ]; 61 }; 62}