diff options
Diffstat (limited to 'pkgs/development/python-modules/ifcopenshell/default.nix')
-rw-r--r-- | pkgs/development/python-modules/ifcopenshell/default.nix | 45 |
1 files changed, 26 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/ifcopenshell/default.nix b/pkgs/development/python-modules/ifcopenshell/default.nix index 3fc63b13bb391..c54c7d514c402 100644 --- a/pkgs/development/python-modules/ifcopenshell/default.nix +++ b/pkgs/development/python-modules/ifcopenshell/default.nix @@ -1,31 +1,38 @@ -{ lib, stdenv -, buildPythonPackage -, fetchFromGitHub -, gcc10 -, cmake -, boost179 -, icu -, swig -, pcre -, opencascade-occt -, opencollada -, libxml2 +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + gcc10, + cmake, + boost179, + icu, + swig, + pcre, + opencascade-occt_7_6, + opencollada, + libxml2, }: - +let + opencascade-occt = opencascade-occt_7_6; +in buildPythonPackage rec { pname = "ifcopenshell"; version = "240306"; format = "other"; src = fetchFromGitHub { - owner = "IfcOpenShell"; - repo = "IfcOpenShell"; + owner = "IfcOpenShell"; + repo = "IfcOpenShell"; rev = "refs/tags/blenderbim-${version}"; fetchSubmodules = true; sha256 = "sha256-DtA8KeWipPfOnztKG/lrgLZeOCUG3nWR9oW7OST7koc="; }; - nativeBuildInputs = [ gcc10 cmake ]; + nativeBuildInputs = [ + gcc10 + cmake + ]; buildInputs = [ boost179 @@ -38,7 +45,7 @@ buildPythonPackage rec { cd cmake ''; - PYTHONUSERBASE="."; + PYTHONUSERBASE = "."; cmakeFlags = [ "-DUSERSPACE_PYTHON_PREFIX=ON" "-DOCC_INCLUDE_DIR=${opencascade-occt}/include/opencascade" @@ -53,8 +60,8 @@ buildPythonPackage rec { meta = with lib; { broken = stdenv.isDarwin; description = "Open source IFC library and geometry engine"; - homepage = "http://ifcopenshell.org/"; - license = licenses.lgpl3; + homepage = "http://ifcopenshell.org/"; + license = licenses.lgpl3; maintainers = with maintainers; [ fehnomenal ]; }; } |