python3Packages.osmpythontools: disable under Python 3.14#478229
python3Packages.osmpythontools: disable under Python 3.14#478229sarahec wants to merge 1 commit intoNixOS:masterfrom
Conversation
|
1 similar comment
|
As far as I can see, this error occurs already when attempting to build dependency |
|
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 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\"))"'→ |
|
Excellent. Thank you. |
|
I've opened #480336 adding the patch |
Hydra: https://hydra.nixos.org/build/317384876
There's no evidence in the upstream repo of work to support python 3.14, so disabled for Python >= 3.14.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.