Skip to content

Conversation

@sarahec
Copy link
Contributor

@sarahec sarahec commented Jan 8, 2026

Hydra: https://hydra.nixos.org/build/317384876

Executing pypaBuildPhase
Creating a wheel...
pypa build flags: --no-isolation --outdir dist/ --wheel

  • Getting build dependencies for wheel...
    Sorry, only Python 3.7 - 3.13 are supported at this time.

ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel

There's no evidence in the upstream repo of work to support python 3.14, so disabled for Python >= 3.14.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@sarahec
Copy link
Contributor Author

sarahec commented Jan 8, 2026

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 478229
Commit: afd8623817711fc8cb6ab4ef2aa7827baf3ba9de

1 similar comment
@sarahec
Copy link
Contributor Author

sarahec commented Jan 8, 2026

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 478229
Commit: afd8623817711fc8cb6ab4ef2aa7827baf3ba9de

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: python Python is a high-level, general-purpose programming language. labels Jan 8, 2026
@das-g
Copy link
Member

das-g commented Jan 9, 2026

Sorry, only Python 3.7 - 3.13 are supported at this time.

As far as I can see, this error occurs already when attempting to build dependency geojson for Python 3.14. So I guess it'd be more appropriate to disable Python ≥ 3.14 there, rather than for osmpythontools (which for all we know might even build and work fine in that Python version without any own code changes once all of its dependencies are compatible to Python 3.14).

@das-g
Copy link
Member

das-g commented Jan 9, 2026

Indeed, applying the change from PR jazzband/geojson#240 with

diff --git a/pkgs/development/python-modules/geojson/default.nix b/pkgs/development/python-modules/geojson/default.nix
index 4088d11c34b1..de084bbd8090 100644
--- a/pkgs/development/python-modules/geojson/default.nix
+++ b/pkgs/development/python-modules/geojson/default.nix
@@ -4,6 +4,7 @@
   fetchFromGitHub,
   setuptools,
   unittestCheckHook,
+  fetchpatch,
 }:
 
 buildPythonPackage rec {
@@ -18,6 +19,13 @@ buildPythonPackage rec {
     hash = "sha256-0p8FW9alcWCSdi66wanS/F9IgO714WIRQIXvg3f9op8=";
   };
 
+  patches = [
+    (fetchpatch {
+      url = "https://github.com/jazzband/geojson/commit/2584c0de5651bd694499449f9da5321b15597270.patch";
+      hash = "sha256-64LPEwC1qc83wF48878fH31CVFn2txTmSxxr0cnQbRg=";
+    })
+  ];
+
   build-system = [ setuptools ];
 
   pythonImportsCheck = [ "geojson" ];

seems to suffice to get osmpythontools to work fine in Python 3.14:

nix-shell -p 'python314.withPackages (ps: [ps.osmpythontools])' -I nixpkgs=. --command 'python -c "from OSMPythonTools.api import Api; api = Api(); way = api.query(\"way/5887599\"); print(way.tag(\"architect\"))"'

Johann Lucas von Hildebrandt

@sarahec
Copy link
Contributor Author

sarahec commented Jan 9, 2026

Excellent. Thank you.

@sarahec sarahec closed this Jan 9, 2026
@autra
Copy link
Contributor

autra commented Jan 15, 2026

I've opened #480336 adding the patch

@sarahec sarahec deleted the py314-osmpythontools branch January 15, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants