25 pythonocc-core-cadquery = toPythonModule (stdenv.mkDerivation {
26 pname = "pythonocc-core-cadquery";
29 src = fetchFromGitHub {
31 repo = "pythonocc-core";
32 # no proper release to to use, this commit copied from the Anaconda receipe
33 rev = "701e924ae40701cbe6f9992bcbdc2ef22aa9b5ab";
34 sha256 = "07zmiiw74dyj4v0ar5vqkvk30wzcpjjzbi04nsdk5mnlzslmyi6c";
49 ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
51 propagatedBuildInputs = [
57 "-DPYTHONOCC_INSTALL_DIRECTORY=${placeholder "out"}/${python.sitePackages}/OCC"
62 buildPythonPackage rec {
66 src = fetchFromGitHub {
70 sha256 = "1n63b6cjjrdwdfmwq0zx1xabjnhndk9mgfkm4w7z9ardcfpvg84l";
77 propagatedBuildInputs = [
79 pythonocc-core-cadquery
82 FONTCONFIG_FILE = makeFontsConf {
83 fontDirectories = [ freefont_ttf ];
90 disabled = pythonOlder "3.6" || pythonAtLeast "3.8";
93 description = "Parametric scripting language for creating and traversing CAD models";
94 homepage = "https://github.com/CadQuery/cadquery";
95 license = licenses.asl20;
96 maintainers = with maintainers; [ marcus7070 ];