Merge pull request #80057 from WhittlesJr/octoprint-plugins
Update and add some Octoprint plugins
This commit is contained in:
commit
b39175b9b9
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, octoprint, python2Packages, marlin-calc }:
|
{ stdenv, fetchgit, fetchFromGitHub, octoprint, python2Packages, marlin-calc }:
|
||||||
|
|
||||||
let
|
let
|
||||||
buildPlugin = args: python2Packages.buildPythonPackage (args // {
|
buildPlugin = args: python2Packages.buildPythonPackage (args // {
|
||||||
@ -168,13 +168,13 @@ let
|
|||||||
|
|
||||||
printtimegenius = buildPlugin rec {
|
printtimegenius = buildPlugin rec {
|
||||||
pname = "PrintTimeGenius";
|
pname = "PrintTimeGenius";
|
||||||
version = "2.0.2";
|
version = "2.2.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "eyal0";
|
owner = "eyal0";
|
||||||
repo = "OctoPrint-${pname}";
|
repo = "OctoPrint-${pname}";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1w4jm42434x87sbih45brkb9krik851vxkz153w3w5c8p74kgg6f";
|
sha256 = "1dr93vbpxgxw3b1q4rwam8f4dmiwr5vnfr9796g6jx8xkpfzzy1h";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
@ -183,6 +183,10 @@ let
|
|||||||
sed 's@"{}.{}".format(binary_base_name, machine)@"${marlin-calc}/bin/marlin-calc"@' -i */analyzers/analyze_progress.py
|
sed 's@"{}.{}".format(binary_base_name, machine)@"${marlin-calc}/bin/marlin-calc"@' -i */analyzers/analyze_progress.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./printtimegenius-logging.patch
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Better print time estimation for OctoPrint";
|
description = "Better print time estimation for OctoPrint";
|
||||||
homepage = "https://github.com/eyal0/OctoPrint-PrintTimeGenius";
|
homepage = "https://github.com/eyal0/OctoPrint-PrintTimeGenius";
|
||||||
@ -191,6 +195,61 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
abl-expert = buildPlugin rec {
|
||||||
|
pname = "ABL_Expert";
|
||||||
|
version = "2019-12-21";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = "https://framagit.org/razer/Octoprint_ABL_Expert/";
|
||||||
|
rev = "f11fbe05088ad618bfd9d064ac3881faec223f33";
|
||||||
|
sha256 = "026r4prkyvwzxag5pv36455q7s3gaig37nmr2nbvhwq3d2lbi5s4";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Marlin auto bed leveling control, mesh correction, and z probe handling";
|
||||||
|
homepage = "https://framagit.org/razer/Octoprint_ABL_Expert/";
|
||||||
|
license = licenses.agpl3;
|
||||||
|
maintainers = with maintainers; [ WhittlesJr ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gcodeeditor = buildPlugin rec {
|
||||||
|
pname = "GcodeEditor";
|
||||||
|
version = "0.2.6";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ieatacid";
|
||||||
|
repo = "OctoPrint-${pname}";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0c6p78r3vd6ys3kld308pyln09zjbr9yif1ljvcx6wlml2i5l1vh";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Edit gcode on OctoPrint";
|
||||||
|
homepage = "https://github.com/Sebclem/OctoPrint-SimpleEmergencyStop";
|
||||||
|
license = licenses.agpl3;
|
||||||
|
maintainers = with maintainers; [ WhittlesJr ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
simpleemergencystop = buildPlugin rec {
|
||||||
|
pname = "SimpleEmergencyStop";
|
||||||
|
version = "0.2.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Sebclem";
|
||||||
|
repo = "OctoPrint-${pname}";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "10wadv09wv2h96igvq3byw9hz1si82n3c7v5y0ii3j7hm2d06y8p";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A simple plugin that add an emergency stop buton on NavBar of OctoPrint";
|
||||||
|
homepage = "https://github.com/ieatacid/OctoPrint-GcodeEditor";
|
||||||
|
license = licenses.agpl3;
|
||||||
|
maintainers = with maintainers; [ WhittlesJr ];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
in self
|
in self
|
||||||
|
@ -0,0 +1,17 @@
|
|||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index 6a6610e..cc45902 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -35,9 +35,9 @@ plugin_license = "AGPLv3"
|
||||||
|
# Any additional requirements besides OctoPrint should be listed here
|
||||||
|
# For now, require the working release, which is only 1.3.9rc1.
|
||||||
|
plugin_requires = ["OctoPrint>=1.3.9rc1", "psutil", "sarge"]
|
||||||
|
-from sys import version_info
|
||||||
|
-if version_info[0] < 3:
|
||||||
|
- plugin_requires.append("logging")
|
||||||
|
+#from sys import version_info
|
||||||
|
+#if version_info[0] < 3:
|
||||||
|
+# plugin_requires.append("logging")
|
||||||
|
|
||||||
|
### --------------------------------------------------------------------------------------------------------------------
|
||||||
|
### More advanced options that you usually shouldn't have to touch follow after this point
|
Loading…
Reference in New Issue
Block a user