diff --git a/pkgs/development/python-modules/odp-amsterdam/default.nix b/pkgs/development/python-modules/odp-amsterdam/default.nix index 0f43639f4f20..f152a50c2819 100644 --- a/pkgs/development/python-modules/odp-amsterdam/default.nix +++ b/pkgs/development/python-modules/odp-amsterdam/default.nix @@ -4,56 +4,63 @@ aresponses, buildPythonPackage, fetchFromGitHub, - poetry-core, + pyprojectVersionPatchHook, pytest-asyncio, + pytest-cov-stub, pytestCheckHook, - pytz, syrupy, + uv-build, + yarl, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "odp-amsterdam"; - version = "6.1.2"; + version = "7.1.0"; pyproject = true; src = fetchFromGitHub { owner = "klaasnicolaas"; repo = "python-odp-amsterdam"; - tag = "v${version}"; - hash = "sha256-vamWelyEcwvYI5I9wmKk8kKc7j0OMer/BKgC0pbN4g0="; + tag = "v${finalAttrs.version}"; + hash = "sha256-YUO8L40FjqjdDWLcmDldQ+5hkdVgBQHvAhd1rBTfDLg="; }; postPatch = '' substituteInPlace pyproject.toml \ - --replace-fail '"0.0.0"' '"${version}"' - sed -i '/addopts/d' pyproject.toml + --replace-fail "uv_build>=0.12.13,<0.13" "uv_build" ''; - build-system = [ - poetry-core - ]; + build-system = [ uv-build ]; - pythonRelaxDeps = [ "pytz" ]; + nativeBuildInputs = [ pyprojectVersionPatchHook ]; dependencies = [ aiohttp - pytz + yarl ]; nativeCheckInputs = [ aresponses pytest-asyncio + pytest-cov-stub pytestCheckHook syrupy ]; pythonImportsCheck = [ "odp_amsterdam" ]; + disabledTests = [ + # Tests are outdated + "test_all_garages" + "test_single_garage" + "test_filter_garage_model" + ]; + meta = { 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}"; + changelog = "https://github.com/klaasnicolaas/python-odp-amsterdam/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})