python3Packages.pythonocc-core: fix build

Fixes #376349
This commit is contained in:
Arnout Engelen
2025-03-11 12:12:09 +01:00
parent e3e32b642a
commit b27ba6f8b7
2 changed files with 5 additions and 3 deletions

View File

@@ -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 = {

View File

@@ -13617,7 +13617,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 { };