nixpkgs/pkgs/applications/misc/octoprint/default.nix
Tobias Geerinckx-Rice 2a09776c3f octoprint: 1.2.9 -> 1.2.10
Note: the 1.2.9 GitHub tarball's sha256 has changed.

Changes:
- Fixed an issue introduced by the fix for 1196 that had the "Upload
  to SD" button stop working correctly.
- Fixed an issue causing an error on disconnect after or cancelling of
  an SD print, caused by the unsuccessful attempt to record print
  recovery data for the file on the printer's SD card.
- Only add bed temperature line to temperature management specific
  start gcode in CuraEngine invocation if a bed temperature is actually
  set in the slicing profile.
- If a communication timeout occurs during an active resend request,
  OctoPrint will now not send an M105 with an increased line number
  anymore but repeat the last resent command instead.
- Don't add an extra ok for M28 response.
- Add an extra ok for M29 response, but only if configured such in
  "Settings" > "Serial" > "Advanced options" > "Generate additional ok
  for M29"
- Trigger M20 only once after finishing uploading to SD
- Prevent M105 "cascade" due to communication timeouts
- Fixed wrong tracking of extruder heating up for M109 Tn commands in
  multi-extruder setups.
- Fixed start of SD file uploads not sending an M110.
- Fixed job data not being reset when disconnecting while printing.
2016-03-24 21:33:18 +01:00

44 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub, pythonPackages }:
pythonPackages.buildPythonApplication rec {
name = "OctoPrint-${version}";
version = "1.2.10";
src = fetchFromGitHub {
owner = "foosel";
repo = "OctoPrint";
rev = version;
sha256 = "1ips1083c4qrfnkssvp1lxrs92svlid29l225ifsymrinpbjawav";
};
# We need old Tornado
propagatedBuildInputs = with pythonPackages; [
awesome-slugify flask_assets watchdog rsa requests2 pkginfo pylru
semantic-version flask_principal sarge tornado_4_0_1 werkzeug netaddr flaskbabel
netifaces psutil pyserial flask_login pyyaml sockjs-tornado
];
postPatch = ''
# Jailbreak dependencies
sed -i \
-e 's,rsa==,rsa>=,g' \
-e 's,sockjs-tornado==,sockjs-tornado>=,g' \
-e 's,Flask-Principal==,Flask-Principal>=,g' \
-e 's,werkzeug==,werkzeug>=,g' \
-e 's,netaddr==,netaddr>=,g' \
-e 's,requests==,requests>=,g' \
-e 's,netifaces==,netifaces>=,g' \
-e 's,psutil==,psutil>=,g' \
-e 's,PyYAML==,PyYAML>=,g' \
setup.py
'';
meta = with stdenv.lib; {
homepage = http://octoprint.org/;
description = "The snappy web interface for your 3D printer";
platforms = platforms.all;
license = licenses.agpl3;
maintainers = with maintainers; [ abbradar ];
};
}