Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cura: 4.5.0 -> 4.6.1 #87516

Merged
merged 6 commits into from
May 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pkgs/applications/misc/cura/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,26 @@

mkDerivation rec {
pname = "cura";
version = "4.5.0";
version = "4.6.1";

src = fetchFromGitHub {
owner = "Ultimaker";
repo = "Cura";
rev = version;
sha256 = "0fm04s912sgmr66wyb55ly4jh39ijsj6lx4fx9wn7hchlqmw5jxi";
sha256 = "0h1r9caa579d3gfpcmch54rdbkg5df64ds2v84iqsbxwjp0rmn4n";
};

materials = fetchFromGitHub {
owner = "Ultimaker";
repo = "fdm_materials";
rev = version;
sha256 = "0fgkwz1anw49macq1jxjhjr79slhmx7g3zwij7g9fqyzzhrrmwqn";
sha256 = "1k5c3qmixhpz3z2yi0fysxcyyf1yhcwmdlrcypkw827lhsialqp4";
};

buildInputs = [ qtbase qtquickcontrols2 qtgraphicaleffects ];
propagatedBuildInputs = with python3.pkgs; [
libsavitar numpy-stl pyserial requests uranium zeroconf
sentry-sdk trimesh
] ++ plugins;
nativeBuildInputs = [ cmake python3.pkgs.wrapPython ];

Expand Down
15 changes: 9 additions & 6 deletions pkgs/applications/misc/cura/plugins.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
{ stdenv, fetchFromGitHub, fetchpatch, cmake, python3Packages }:
{ stdenv, fetchFromGitHub, fetchpatch, python3Packages }:

let

self = {

octoprint = stdenv.mkDerivation rec {
pname = "Cura-OctoPrintPlugin";
version = "3.5.11";
version = "3.5.12";

src = fetchFromGitHub {
owner = "fieldOfView";
repo = pname;
rev = "3cef0a955ae7ccfa5c07d20d9d147c530cc9d6ec";
sha256 = "0q9bkwgpsbfwkp1bfaxq3wm9pbwx5d7ji0jr7cwc4y5nizji81is";
rev = "ad522c0b7ead5fbe28da686a3cc75e351274c2bc";
sha256 = "0ln11ng32bh0smfsk54mv2j3sadh0gwf031nmm95zrvbj9cr6yc0";
};

nativeBuildInputs = [ cmake ];

propagatedBuildInputs = with python3Packages; [
netifaces
];

installPhase = ''
mkdir -p $out/lib/cura/plugins/OctoPrintPlugin
cp -rv . $out/lib/cura/plugins/OctoPrintPlugin/
'';

meta = with stdenv.lib; {
description = "Enables printing directly to OctoPrint and monitoring the process";
homepage = "https://github.com/fieldOfView/Cura-OctoPrintPlugin";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/libarcus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

buildPythonPackage rec {
pname = "libarcus";
version = "4.5.0";
version = "4.6.1";
format = "other";

src = fetchFromGitHub {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/libsavitar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

buildPythonPackage rec {
pname = "libsavitar";
version = "4.5.0";
version = "4.6.1";
format = "other";

src = fetchFromGitHub {
owner = "Ultimaker";
repo = "libSavitar";
rev = version;
sha256 = "1l3l8cgaxzqdk93880p2ijrabshdj5sq05cwj1i6jpmhlqc5b9rx";
sha256 = "0nk8zl5b0b36wrrkj271ck4phzxsigkjsazndscjslc9nkldmnpq";
};

postPatch = ''
Expand Down
24 changes: 24 additions & 0 deletions pkgs/development/python-modules/trimesh/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ lib, buildPythonPackage, fetchPypi, numpy }:

buildPythonPackage rec {
pname = "trimesh";
version = "3.6.36";

src = fetchPypi {
inherit pname version;
sha256 = "1m8dqqyzazrjk4d32cqn4d8gvbfcwgs2qbmgvpi2f2mi5vnp6d85";
};

propagatedBuildInputs = [ numpy ];

# tests are not included in pypi distributions and would require lots of
# optional dependencies
doCheck = false;

meta = with lib; {
description = "Python library for loading and using triangular meshes.";
homepage = "https://trimsh.org/";
license = licenses.mit;
maintainers = with maintainers; [ gebner ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/uranium/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
, pyqt5, numpy, scipy, shapely, libarcus, doxygen, gettext, pythonOlder }:

buildPythonPackage rec {
version = "4.5.0";
version = "4.6.1";
pname = "uranium";
format = "other";

src = fetchFromGitHub {
owner = "Ultimaker";
repo = "Uranium";
rev = version;
sha256 = "1l8fwj521irla42bdbw298d3c5rjpn1nm9xhjnx7hidbqixr5d27";
sha256 = "07pksjbgxs1ks2i6pgxkwfg9c56pcql7f9p89dnwaf2rcn7yhx6r";
};

disabled = pythonOlder "3.5.0";
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,8 @@ in {

transforms3d = callPackage ../development/python-modules/transforms3d { };

trimesh = callPackage ../development/python-modules/trimesh {};

sentinel = callPackage ../development/python-modules/sentinel { };

sentry-sdk = callPackage ../development/python-modules/sentry-sdk {};
Expand Down