Unverified Commit d82d3507 authored by Arnout Engelen's avatar Arnout Engelen Committed by GitHub
Browse files

python3Packages.pythonocc-core: fix build (#388956)

parents e607ef1a b27ba6f8
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -14,19 +14,20 @@
  libXi,
  libXmu,
  opencascade-occt,
  numpy,
  rapidjson,
  swig,
}:

stdenv.mkDerivation rec {
  pname = "pythonocc-core";
  version = "7.6.2";
  version = "7.8.1.1";

  src = fetchFromGitHub {
    owner = "tpaviot";
    repo = "pythonocc-core";
    tag = version;
    hash = "sha256-45pqPQ07KYlpFwJSAYVHbzuqDQTbAvPpxReal52DCzU=";
    hash = "sha256-0o2PQEN0/Z7FUPZEo2HxFFa+mN2bZnYI++HVu4ONpNA=";
  };

  postPatch = ''
@@ -50,12 +51,14 @@ stdenv.mkDerivation rec {
    libXmu
    libXi
    fontconfig
    numpy
    rapidjson
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ];

  cmakeFlags = [
    "-Wno-dev"
    "-DPYTHONOCC_INSTALL_DIRECTORY=${placeholder "out"}/${python.sitePackages}/OCC"
    "-DPYTHONOCC_MESHDS_NUMPY=on"
  ];

  passthru = {
+0 −1
Original line number Diff line number Diff line
@@ -13633,7 +13633,6 @@ self: super: with self; {
    inherit (pkgs) fontconfig rapidjson;
    inherit (pkgs.xorg) libX11 libXi libXmu libXext;
    inherit (pkgs.darwin.apple_sdk.frameworks) Cocoa;
    opencascade-occt = pkgs.opencascade-occt_7_6;
  });
  python-olm = callPackage ../development/python-modules/python-olm { };