From cbdaa29c3e169ec69ebd267720781724f1c5e276 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Thu, 27 Dec 2018 02:15:04 +0000 Subject: [PATCH] python3Packages.libsavitar: init at 3.6.0 --- .../python-modules/libsavitar/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 6 ++-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/python-modules/libsavitar/default.nix 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a377046c990..d7a22f94b53 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 { };