summary refs log tree commit diff
path: root/pkgs/applications/science/electronics
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2023-08-17 17:11:41 -0700
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2023-08-23 17:46:21 -0700
commit003cfb2dc7f51d06ff34dde42b7274cea5fa506a (patch)
tree3a53b5cd4317f05fe865d727c5c30f086f2d662f /pkgs/applications/science/electronics
parentdfe898c8014622334a2ad541f1837b5319905b34 (diff)
downloadnixpkgs-003cfb2dc7f51d06ff34dde42b7274cea5fa506a.tar
nixpkgs-003cfb2dc7f51d06ff34dde42b7274cea5fa506a.tar.gz
nixpkgs-003cfb2dc7f51d06ff34dde42b7274cea5fa506a.tar.bz2
nixpkgs-003cfb2dc7f51d06ff34dde42b7274cea5fa506a.tar.lz
nixpkgs-003cfb2dc7f51d06ff34dde42b7274cea5fa506a.tar.xz
nixpkgs-003cfb2dc7f51d06ff34dde42b7274cea5fa506a.tar.zst
nixpkgs-003cfb2dc7f51d06ff34dde42b7274cea5fa506a.zip
flatcam: do not pin setuptools in shapely
Diffstat (limited to 'pkgs/applications/science/electronics')
-rw-r--r--pkgs/applications/science/electronics/flatcam/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/science/electronics/flatcam/default.nix b/pkgs/applications/science/electronics/flatcam/default.nix
index 338823bbf38..169130b4101 100644
--- a/pkgs/applications/science/electronics/flatcam/default.nix
+++ b/pkgs/applications/science/electronics/flatcam/default.nix
@@ -13,13 +13,16 @@ let
     packageOverrides = self: super: {
       shapely = super.shapely.overridePythonAttrs (old: rec {
         version = "1.8.4";
+
         src = fetchPypi {
           pname = "Shapely";
           inherit version;
           hash = "sha256-oZXlHKr6IYKR8suqP+9p/TNTyT7EtlsqRyLEz0DDGYw=";
         };
+
         # Environment variable used in shapely/_buildcfg.py
         GEOS_LIBRARY_PATH = "${geos}/lib/libgeos_c${stdenv.hostPlatform.extensions.sharedLibrary}";
+
         patches = [
           # Patch to search form GOES .so/.dylib files in a Nix-aware way
           (substituteAll {
@@ -28,6 +31,11 @@ let
             libc = lib.optionalString (!stdenv.isDarwin) "${stdenv.cc.libc}/lib/libc${stdenv.hostPlatform.extensions.sharedLibrary}.6";
           })
         ];
+
+        postPatch = ''
+          substituteInPlace pyproject.toml \
+            --replace 'setuptools<64' 'setuptools'
+        '';
       });
     };
   };