From cbdaa29c3e169ec69ebd267720781724f1c5e276 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Thu, 27 Dec 2018 02:15:04 +0000 Subject: [PATCH 1/5] 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 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 { }; From ab95c92349a8092ac98b7ec79b32b5e1e0355145 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Thu, 27 Dec 2018 02:16:32 +0000 Subject: [PATCH 2/5] python3Packages.libarcus: 3.4.1 -> 3.6.0 --- pkgs/development/python-modules/libarcus/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/libarcus/default.nix b/pkgs/development/python-modules/libarcus/default.nix index fc58c6ca6a1d..8d0bf2b7b17e 100644 --- a/pkgs/development/python-modules/libarcus/default.nix +++ b/pkgs/development/python-modules/libarcus/default.nix @@ -3,14 +3,14 @@ buildPythonPackage rec { pname = "libarcus"; - version = "3.4.1"; + version = "3.6.0"; format = "other"; src = fetchFromGitHub { owner = "Ultimaker"; repo = "libArcus"; rev = version; - sha256 = "0mln8myvfl7rq2p4g1vadvlykckd8490jijag4xa5hhj3w3p19bk"; + sha256 = "1zbp6axai47k3p2q497wiajls1h17wss143zynbwbwrqinsfiw43"; }; disabled = pythonOlder "3.4.0"; @@ -26,7 +26,7 @@ buildPythonPackage rec { meta = with stdenv.lib; { description = "Communication library between internal components for Ultimaker software"; homepage = https://github.com/Ultimaker/libArcus; - license = licenses.agpl3; + license = licenses.lgpl3Plus; platforms = platforms.linux; maintainers = with maintainers; [ abbradar ]; }; From b742250b3115ebd26f3bee2f621b6831931f8cd2 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Thu, 27 Dec 2018 02:17:24 +0000 Subject: [PATCH 3/5] python3Packages.uranium: 3.5.1 -> 3.6.0 --- pkgs/development/python-modules/uranium/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/uranium/default.nix b/pkgs/development/python-modules/uranium/default.nix index cee339007846..351279476c8c 100644 --- a/pkgs/development/python-modules/uranium/default.nix +++ b/pkgs/development/python-modules/uranium/default.nix @@ -2,7 +2,7 @@ , pyqt5, numpy, scipy, shapely, libarcus, doxygen, gettext, pythonOlder }: buildPythonPackage rec { - version = "3.5.1"; + version = "3.6.0"; pname = "uranium"; format = "other"; @@ -10,7 +10,7 @@ buildPythonPackage rec { owner = "Ultimaker"; repo = "Uranium"; rev = version; - sha256 = "1qfci5pl4yhirkkck1rm4i766j8gi56p81mfc6vgbdnhchcjyhy9"; + sha256 = "02hid13h8anb9bgv2hhrcdg10bxdxa9hj9pbdv3gw3lpn9r2va98"; }; disabled = pythonOlder "3.5.0"; @@ -30,7 +30,7 @@ buildPythonPackage rec { meta = with stdenv.lib; { description = "A Python framework for building Desktop applications"; homepage = https://github.com/Ultimaker/Uranium; - license = licenses.agpl3; + license = licenses.lgpl3Plus; platforms = platforms.linux; maintainers = with maintainers; [ abbradar ]; }; From 3ce19d96b3a26441510373b78fa4880c24597088 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Thu, 27 Dec 2018 02:19:24 +0000 Subject: [PATCH 4/5] curaengine: 3.4.1 -> 3.6.0 --- pkgs/applications/misc/curaengine/default.nix | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/misc/curaengine/default.nix b/pkgs/applications/misc/curaengine/default.nix index 75d1936ba857..22215a7e2c68 100644 --- a/pkgs/applications/misc/curaengine/default.nix +++ b/pkgs/applications/misc/curaengine/default.nix @@ -2,23 +2,15 @@ stdenv.mkDerivation rec { name = "curaengine-${version}"; - version = "3.4.1"; + version = "3.6.0"; src = fetchFromGitHub { owner = "Ultimaker"; repo = "CuraEngine"; rev = version; - sha256 = "083jmhzmb60rmqw0fhbnlxyblzkmpn3k6zc75xq90x5g3h60wib4"; + sha256 = "1iwmblvs3qw57698i8bbazyxha18bj9irnkcscdb0596g8q93fcm"; }; - patches = [ - # Fixed upstream, but not yet released - (fetchpatch { - url = "https://github.com/Ultimaker/CuraEngine/commit/5aad55bf67e52ce5bdb27a3925af8a4cab441b38.patch"; - sha256 = "1hxbslzhkvdg8p33mvlbrpw62gwfqpsdbfca6yhdng9hifl86j3f"; - }) - ]; - nativeBuildInputs = [ cmake ]; buildInputs = [ libarcus stb ]; From 8112354f4f7ec74203c554d041d6e6daccc8df00 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Thu, 27 Dec 2018 02:20:25 +0000 Subject: [PATCH 5/5] cura: 3.4.1 -> 3.6.0 --- pkgs/applications/misc/cura/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/misc/cura/default.nix b/pkgs/applications/misc/cura/default.nix index f97b83a85075..f7907746d107 100644 --- a/pkgs/applications/misc/cura/default.nix +++ b/pkgs/applications/misc/cura/default.nix @@ -2,24 +2,26 @@ mkDerivation rec { name = "cura-${version}"; - version = "3.4.1"; + version = "3.6.0"; src = fetchFromGitHub { owner = "Ultimaker"; repo = "Cura"; rev = version; - sha256 = "03s9nf1aybbnbf1rzqja41m9g6991bbvrcly1lcrfqksianfn06w"; + sha256 = "0wzkbqdd1670smw1vnq634rkpcjwnhwcvimhvjq904gy2fylgr90"; }; materials = fetchFromGitHub { owner = "Ultimaker"; repo = "fdm_materials"; - rev = "3.4.1"; - sha256 = "1pw30clxqd7qgnidsyx6grizvlgfn8rhj6rd5ppkvv3rdjh0gj28"; + rev = version; + sha256 = "0g2dkph0ll7d9109n17vmfwb4fpc8lhyb1z1q68j8vblyvg08d12"; }; buildInputs = [ qtbase qtquickcontrols2 ]; - propagatedBuildInputs = with python3.pkgs; [ uranium zeroconf pyserial numpy-stl ]; + propagatedBuildInputs = with python3.pkgs; [ + libsavitar numpy-stl pyserial requests uranium zeroconf + ]; nativeBuildInputs = [ cmake python3.pkgs.wrapPython ]; cmakeFlags = [ @@ -44,7 +46,7 @@ mkDerivation rec { meta = with lib; { description = "3D printer / slicing GUI built on top of the Uranium framework"; homepage = https://github.com/Ultimaker/Cura; - license = licenses.agpl3; + license = licenses.lgpl3Plus; platforms = platforms.linux; maintainers = with maintainers; [ abbradar ]; };