about summary refs log tree commit diff
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
parent9b3204d41b212587a6370ce25fad1b2f4d2389f7 (diff)
downloadnixlib-cbdaa29c3e169ec69ebd267720781724f1c5e276.tar
nixlib-cbdaa29c3e169ec69ebd267720781724f1c5e276.tar.gz
nixlib-cbdaa29c3e169ec69ebd267720781724f1c5e276.tar.bz2
nixlib-cbdaa29c3e169ec69ebd267720781724f1c5e276.tar.lz
nixlib-cbdaa29c3e169ec69ebd267720781724f1c5e276.tar.xz
nixlib-cbdaa29c3e169ec69ebd267720781724f1c5e276.tar.zst
nixlib-cbdaa29c3e169ec69ebd267720781724f1c5e276.zip
python3Packages.libsavitar: init at 3.6.0
-rw-r--r--pkgs/development/python-modules/libsavitar/default.nix33
-rw-r--r--pkgs/top-level/python-packages.nix6
2 files changed, 37 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/libsavitar/default.nix b/pkgs/development/python-modules/libsavitar/default.nix
new file mode 100644
index 000000000000..9f78b9994509
--- /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 ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index a377046c990b..d7a22f94b53a 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -2824,6 +2824,8 @@ in {
 
   fs-s3fs = callPackage ../development/python-modules/fs-s3fs { };
 
+  libarcus = callPackage ../development/python-modules/libarcus { };
+
   libcloud = callPackage ../development/python-modules/libcloud { };
 
   libgpuarray = callPackage ../development/python-modules/libgpuarray {
@@ -2842,6 +2844,8 @@ in {
     inherit (pkgs) libsodium;
   };
 
+  libsavitar = callPackage ../development/python-modules/libsavitar { };
+
   libplist = disabledIf isPy3k
     (toPythonModule (pkgs.libplist.override{python2Packages=self; })).py;
 
@@ -4493,8 +4497,6 @@ in {
     inherit (pkgs) libasyncns pkgconfig;
   };
 
-  libarcus = callPackage ../development/python-modules/libarcus { };
-
   pybrowserid = callPackage ../development/python-modules/pybrowserid { };
 
   pyzmq = callPackage ../development/python-modules/pyzmq { };