diff options
author | Luis Pedro Coelho <luis@luispedro.org> | 2024-03-05 12:53:26 +1000 |
---|---|---|
committer | Luis Pedro Coelho <luis@luispedro.org> | 2024-03-06 10:39:28 +1000 |
commit | 495d56cd3795b7ce62150b44dafef7d19b14dd63 (patch) | |
tree | 01bba33fd9651426448a640c5ea2a8617ce61c1a | |
parent | 75b569f0a1bf5a6686bf1a4eca234b75e18d67a3 (diff) |
python311Packages.mahotas: remove freeimage dependency
The library will work without it (unless the user explicitly imports the freeimage subpackage, which is a very specialized usage)
-rw-r--r-- | pkgs/development/python-modules/mahotas/default.nix | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/mahotas/default.nix b/pkgs/development/python-modules/mahotas/default.nix index 6926cc0e6958f..e5ad5a283db7a 100644 --- a/pkgs/development/python-modules/mahotas/default.nix +++ b/pkgs/development/python-modules/mahotas/default.nix @@ -6,7 +6,6 @@ , numpy , pytestCheckHook , imread -, freeimage , lib , stdenv }: @@ -24,7 +23,6 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ - freeimage imread numpy pillow @@ -33,11 +31,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - postPatch = '' - substituteInPlace mahotas/io/freeimage.py \ - --replace "ctypes.util.find_library('freeimage')" 'True' \ - --replace 'ctypes.CDLL(libname)' 'np.ctypeslib.load_library("libfreeimage", "${freeimage}/lib")' - ''; # mahotas/_morph.cpp:864:10: error: no member named 'random_shuffle' in namespace 'std' env = lib.optionalAttrs stdenv.cc.isClang { @@ -59,7 +52,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "mahotas" - "mahotas.freeimage" ]; disabled = stdenv.isi686; # Failing tests |