pythonPackages.pythonocc-core: init at 0.18.1 (#60643)

pythonPackages.pythonocc-core: init at 0.18.1
This commit is contained in:
Gabriel Ebner 2019-05-01 18:28:18 +02:00 committed by GitHub
commit 7f1a4eb5d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{ stdenv, fetchFromGitHub, cmake, ninja, opencascade }:
stdenv.mkDerivation rec {
pname = "smesh";
version = "6.7.6";
src = fetchFromGitHub {
owner = "tpaviot";
repo = "smesh";
rev = version;
sha256 = "1b07j3bw3lnxk8dk3x1kkl2mbsmfwi98si84054038lflaaijzi0";
};
nativeBuildInputs = [ cmake ninja ];
buildInputs = [ opencascade ];
meta = with stdenv.lib; {
description = "Extension to OCE providing advanced meshing features";
homepage = "https://github.com/tpaviot/smesh";
license = licenses.lgpl21;
platforms = platforms.unix;
maintainers = with maintainers; [ gebner ];
};
}

View File

@ -0,0 +1,37 @@
{ stdenv, python, fetchFromGitHub, cmake, swig, ninja,
opencascade, smesh, freetype, libGL, libGLU, libX11 }:
stdenv.mkDerivation rec {
pname = "pythonocc-core";
version = "0.18.1";
src = fetchFromGitHub {
owner = "tpaviot";
repo = "pythonocc-core";
rev = version;
sha256 = "1jk4y7f75z9lyawffpfkr50qw5452xzi1imcdlw9pdvf4i0y86k3";
};
nativeBuildInputs = [ cmake swig ninja ];
buildInputs = [
python opencascade smesh
freetype libGL libGLU libX11
];
cmakeFlags = [
"-Wno-dev"
"-DPYTHONOCC_INSTALL_DIRECTORY=${placeholder "out"}/${python.sitePackages}/OCC"
"-DSMESH_INCLUDE_PATH=${smesh}/include/smesh"
"-DSMESH_LIB_PATH=${smesh}/lib"
"-DPYTHONOCC_WRAP_SMESH=TRUE"
];
meta = with stdenv.lib; {
description = "Python wrapper for the OpenCASCADE 3D modeling kernel";
homepage = "https://github.com/tpaviot/pythonocc-core";
license = licenses.lgpl3;
platforms = platforms.unix;
maintainers = with maintainers; [ gebner ];
};
}

View File

@ -5745,6 +5745,8 @@ in
smenu = callPackage ../tools/misc/smenu { };
smesh = callPackage ../development/libraries/smesh {};
smugline = python3Packages.smugline;
snabb = callPackage ../tools/networking/snabb { } ;

View File

@ -782,6 +782,10 @@ in {
python-mnist = callPackage ../development/python-modules/python-mnist { };
pythonocc-core = toPythonModule (callPackage ../development/python-modules/pythonocc-core {
inherit (pkgs.xorg) libX11;
});
python-igraph = callPackage ../development/python-modules/python-igraph {
pkgconfig = pkgs.pkgconfig;
igraph = pkgs.igraph;