Unverified Commit 88c57570 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #265285 from wegank/symengine-fix

python311Packages.symengine: fix build
parents a69d9b54 89bd672b
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchpatch
, fetchFromGitHub
, cython
, cmake
@@ -22,14 +21,6 @@ buildPythonPackage rec {
    hash = "sha256-03lHip0iExfptrUe5ObA6xXrsfS4QJPrh1Z0v7q2lDI=";
  };

  patches = [
    (fetchpatch {
      # setuptools 61 compat
      url = "https://github.com/symengine/symengine.py/commit/987e665e71cf92d1b021d7d573a1b9733408eecf.patch";
      hash = "sha256-2QbNdw/lKYRIRpOU5BiwF2kK+5Lh2j/Q82MKUIvl0+c=";
    })
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "\"cmake\"" "\"${cmake}/bin/cmake\"" \