nixpkgs/pkgs/development/python-modules/pythonocc-core/default.nix
Arnout Engelen f887c1da04
treewide: remove gebner from maintainers
gebner has been an amazing maintainer, but appears to have moved on:
the last commit on nixpkgs appears to have been in Feb 2023, and
they have not been responding to pings (e.g.
https://github.com/NixOS/nixpkgs/issues/347764).

They also approved https://github.com/NixOS/nixpkgs/pull/337292 before,
but that PR had some additional changes and was closed without merging.

This PR is in no way intended to diminuish Gabriel's accomplishments,
and they're welcome to just say so if they'd prefer this PR not to
be merged. Also, even if it's merged, of course they're always welcome
to return to activity and be added back. The intent of this PR is to
give more realistic expectations around the maintainership of these
packages, and to invite others to step up for maintainership if they
rely on those packages.

This seems in line with https://github.com/NixOS/nixpkgs/tree/master/maintainers#how-to-lose-maintainer-status
2025-03-11 14:37:35 +01:00

75 lines
1.5 KiB
Nix

{
lib,
stdenv,
python,
fetchFromGitHub,
cmake,
Cocoa,
fontconfig,
freetype,
libGL,
libGLU,
libX11,
libXext,
libXi,
libXmu,
opencascade-occt,
rapidjson,
swig,
}:
stdenv.mkDerivation rec {
pname = "pythonocc-core";
version = "7.6.2";
src = fetchFromGitHub {
owner = "tpaviot";
repo = "pythonocc-core";
tag = version;
hash = "sha256-45pqPQ07KYlpFwJSAYVHbzuqDQTbAvPpxReal52DCzU=";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace "/usr/X11R6/lib/libGL.dylib" "${libGL}/lib/libGL.dylib" \
--replace "/usr/X11R6/lib/libGLU.dylib" "${libGLU}/lib/libGLU.dylib"
'';
nativeBuildInputs = [
cmake
swig
];
buildInputs = [
python
opencascade-occt
freetype
libGL
libGLU
libX11
libXext
libXmu
libXi
fontconfig
rapidjson
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ];
cmakeFlags = [
"-Wno-dev"
"-DPYTHONOCC_INSTALL_DIRECTORY=${placeholder "out"}/${python.sitePackages}/OCC"
];
passthru = {
# `python3Packages.pythonocc-core` must be updated in tandem with
# `opencascade-occt`, and including it in the bulk updates often breaks it.
skipBulkUpdate = true;
};
meta = with lib; {
description = "Python wrapper for the OpenCASCADE 3D modeling kernel";
homepage = "https://github.com/tpaviot/pythonocc-core";
changelog = "https://github.com/tpaviot/pythonocc-core/releases/tag/${version}";
license = licenses.lgpl3;
platforms = platforms.unix;
maintainers = with maintainers; [ ];
};
}