python3Packages.f3d: add python module

This commit is contained in:
aleksana 2024-06-17 21:48:35 +08:00
parent 96b429b0b0
commit 6ffd76f080
2 changed files with 19 additions and 3 deletions

View File

@ -6,11 +6,11 @@
, gzip
, vtk_9
, autoPatchelfHook
, libX11
, libGL
, Cocoa
, OpenGL
, python3Packages
, withManual ? !stdenv.isDarwin
, withPythonBinding ? false
}:
stdenv.mkDerivation rec {
@ -37,7 +37,16 @@ stdenv.mkDerivation rec {
autoPatchelfHook
];
buildInputs = [ vtk_9 ] ++ lib.optionals stdenv.isDarwin [ Cocoa OpenGL ];
buildInputs = [
vtk_9
] ++ lib.optionals stdenv.isDarwin [
Cocoa
OpenGL
] ++ lib.optionals withPythonBinding [
python3Packages.python
# Using C++ header files, not Python import
python3Packages.pybind11
];
cmakeFlags = [
# conflict between VTK and Nixpkgs;
@ -47,6 +56,8 @@ stdenv.mkDerivation rec {
"-DCMAKE_INSTALL_BINDIR=bin"
] ++ lib.optionals withManual [
"-DF3D_LINUX_GENERATE_MAN=ON"
] ++ lib.optionals withPythonBinding [
"-DF3D_BINDINGS_PYTHON=ON"
];
meta = with lib; {

View File

@ -4052,6 +4052,11 @@ self: super: with self; {
ezyrb = callPackage ../development/python-modules/ezyrb { };
f3d = toPythonModule (pkgs.f3d.override {
withPythonBinding = true;
python3Packages = self;
});
f5-icontrol-rest = callPackage ../development/python-modules/f5-icontrol-rest { };
f5-sdk = callPackage ../development/python-modules/f5-sdk { };