Skip to content

Commit

Permalink
python3Packages.contourpy: fix cross build
Browse files Browse the repository at this point in the history
  • Loading branch information
DavHau committed Dec 31, 2024
1 parent 88195a9 commit 9039a9a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/development/python-modules/contourpy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
python3,

# build
meson,
Expand Down Expand Up @@ -73,6 +74,12 @@ let

pythonImportsCheck = [ "contourpy" ];

# remove references to buildPackages.python3, which is not allowed for cross builds.
fixupPhase = ''
rm $out/${python3.sitePackages}/contourpy/util/_build_config.py
rm $out/${python3.sitePackages}/contourpy/util/__pycache__/_build_config.*
'';

meta = with lib; {
changelog = "https://github.com/contourpy/contourpy/releases/tag/v${version}";
description = "Python library for calculating contours in 2D quadrilateral grids";
Expand Down

0 comments on commit 9039a9a

Please sign in to comment.