Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 62 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, poetry-core, pythonOlder, pytest-asyncio, pytestCheckHook, pytz, syrupy,}:
buildPythonPackage rec { pname = "odp-amsterdam"; version = "6.1.2"; pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub { owner = "klaasnicolaas"; repo = "python-odp-amsterdam"; tag = "v${version}"; hash = "sha256-vamWelyEcwvYI5I9wmKk8kKc7j0OMer/BKgC0pbN4g0="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail '"0.0.0"' '"${version}"' sed -i '/addopts/d' pyproject.toml '';
build-system = [ poetry-core ];
pythonRelaxDeps = [ "pytz" ];
dependencies = [ aiohttp pytz ];
nativeCheckInputs = [ aresponses pytest-asyncio pytestCheckHook syrupy ];
pythonImportsCheck = [ "odp_amsterdam" ];
meta = with lib; { description = "Python client for getting garage occupancy in Amsterdam"; homepage = "https://github.com/klaasnicolaas/python-odp-amsterdam"; changelog = "https://github.com/klaasnicolaas/python-odp-amsterdam/releases/tag/${src.tag}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}