summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2018-12-27 02:15:04 +0000
committerOrivej Desh <orivej@gmx.fr>2018-12-27 02:18:31 +0000
commitcbdaa29c3e169ec69ebd267720781724f1c5e276 (patch)
treeec6bc1db74b8135063b529cc34f09398346ad0a3 /pkgs/development
parent9b3204d41b212587a6370ce25fad1b2f4d2389f7 (diff)
downloadnixpkgs-cbdaa29c3e169ec69ebd267720781724f1c5e276.tar
nixpkgs-cbdaa29c3e169ec69ebd267720781724f1c5e276.tar.gz
nixpkgs-cbdaa29c3e169ec69ebd267720781724f1c5e276.tar.bz2
nixpkgs-cbdaa29c3e169ec69ebd267720781724f1c5e276.tar.lz
nixpkgs-cbdaa29c3e169ec69ebd267720781724f1c5e276.tar.xz
nixpkgs-cbdaa29c3e169ec69ebd267720781724f1c5e276.tar.zst
nixpkgs-cbdaa29c3e169ec69ebd267720781724f1c5e276.zip
python3Packages.libsavitar: init at 3.6.0
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/libsavitar/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/libsavitar/default.nix b/pkgs/development/python-modules/libsavitar/default.nix
new file mode 100644
index 00000000000..9f78b999450
--- /dev/null
+++ b/pkgs/development/python-modules/libsavitar/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, cmake, sip }:
+
+buildPythonPackage rec {
+  pname = "libsavitar";
+  version = "3.6.0";
+  format = "other";
+
+  src = fetchFromGitHub {
+    owner = "Ultimaker";
+    repo = "libSavitar";
+    rev = version;
+    sha256 = "1bz8ga0n9aw65hqzajbr93dcv5g555iaihbhs1jq2k47cx66klzv";
+  };
+
+  postPatch = ''
+    # To workaround buggy SIP detection which overrides PYTHONPATH
+    sed -i '/SET(ENV{PYTHONPATH}/d' cmake/FindSIP.cmake
+  '';
+
+  nativeBuildInputs = [ cmake ];
+
+  propagatedBuildInputs = [ sip ];
+
+  disabled = pythonOlder "3.4.0";
+
+  meta = with stdenv.lib; {
+    description = "C++ implementation of 3mf loading with SIP python bindings";
+    homepage = https://github.com/Ultimaker/libSavitar;
+    license = licenses.lgpl3Plus;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ abbradar orivej ];
+  };
+}