From 78b2be91ee11bd9f40cf67c4e64672f367c31739 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sun, 19 Jul 2026 02:18:43 +0200 Subject: [PATCH 1/3] python3Packages.overturemaps: enable tests --- pkgs/by-name/ov/overturemaps/package.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkgs/by-name/ov/overturemaps/package.nix b/pkgs/by-name/ov/overturemaps/package.nix index 039ed509d483..2c49a5341f32 100644 --- a/pkgs/by-name/ov/overturemaps/package.nix +++ b/pkgs/by-name/ov/overturemaps/package.nix @@ -35,6 +35,22 @@ python3Packages.buildPythonPackage rec { pythonImportsCheck = [ "overturemaps" ]; + preCheck = '' + substituteInPlace pytest.ini \ + --replace-fail "testpaths = tests benchmarks" "testpaths = tests" + ''; + + disabledTestPaths = [ + # requires network + "tests/test_changelog.py" + "tests/test_gers.py" + "tests/test_releases.py" + ]; + + nativeCheckInputs = with python3Packages; [ + pytestCheckHook + ]; + meta = { description = "Official command-line tool of the Overture Maps Foundation"; homepage = "https://overturemaps.org/"; From f28dc95c580a173e762aa4a0bd01d3cfb72117c7 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sun, 19 Jul 2026 02:19:09 +0200 Subject: [PATCH 2/3] python3Packages.overturemaps: use finalAttrs --- pkgs/by-name/ov/overturemaps/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ov/overturemaps/package.nix b/pkgs/by-name/ov/overturemaps/package.nix index 2c49a5341f32..daf16136201d 100644 --- a/pkgs/by-name/ov/overturemaps/package.nix +++ b/pkgs/by-name/ov/overturemaps/package.nix @@ -4,13 +4,13 @@ fetchPypi, }: -python3Packages.buildPythonPackage rec { +python3Packages.buildPythonPackage (finalAttrs: { pname = "overturemaps"; version = "1.0.1"; pyproject = true; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-yKl13Y9kRCGHzoqeZIQEac/PrByTCtCQFaz8sUgeVIs="; }; @@ -58,4 +58,4 @@ python3Packages.buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ crimeminister ]; }; -} +}) From 58fc18660223a8c17c68c783100ddfb4f2f52bda Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sun, 19 Jul 2026 02:19:36 +0200 Subject: [PATCH 3/3] python3Packages.overturemaps: remove tqdm relax --- pkgs/by-name/ov/overturemaps/package.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkgs/by-name/ov/overturemaps/package.nix b/pkgs/by-name/ov/overturemaps/package.nix index daf16136201d..1e6f0daa5572 100644 --- a/pkgs/by-name/ov/overturemaps/package.nix +++ b/pkgs/by-name/ov/overturemaps/package.nix @@ -30,9 +30,6 @@ python3Packages.buildPythonPackage (finalAttrs: { tqdm ]; - # Drop once tqdm 4.67.3 reaches master - pythonRelaxDeps = [ "tqdm" ]; - pythonImportsCheck = [ "overturemaps" ]; preCheck = ''