21 stdenv.mkDerivation rec {
22 pname = "pythonocc-core";
25 src = fetchFromGitHub {
27 repo = "pythonocc-core";
28 rev = "refs/tags/${version}";
29 hash = "sha256-45pqPQ07KYlpFwJSAYVHbzuqDQTbAvPpxReal52DCzU=";
33 substituteInPlace CMakeLists.txt \
34 --replace "/usr/X11R6/lib/libGL.dylib" "${libGL}/lib/libGL.dylib" \
35 --replace "/usr/X11R6/lib/libGLU.dylib" "${libGLU}/lib/libGLU.dylib"
54 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ];
58 "-DPYTHONOCC_INSTALL_DIRECTORY=${placeholder "out"}/${python.sitePackages}/OCC"
62 # `python3Packages.pythonocc-core` must be updated in tandem with
63 # `opencascade-occt`, and including it in the bulk updates often breaks it.
64 skipBulkUpdate = true;
68 description = "Python wrapper for the OpenCASCADE 3D modeling kernel";
69 homepage = "https://github.com/tpaviot/pythonocc-core";
70 changelog = "https://github.com/tpaviot/pythonocc-core/releases/tag/${version}";
71 license = licenses.lgpl3;
72 platforms = platforms.unix;
73 maintainers = with maintainers; [ gebner ];