all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 51314@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#51314] [PATCH v3 21/21] gnu: Add octoprint.
Date: Mon, 27 Dec 2021 23:30:44 +0000	[thread overview]
Message-ID: <20211227233044.26475-22-monego@posteo.net> (raw)
In-Reply-To: <20211227233044.26475-1-monego@posteo.net>

* gnu/packages/printers.scm (octoprint): New variable.
---
 gnu/packages/printers.scm | 114 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 113 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/printers.scm b/gnu/packages/printers.scm
index 546a808452..cea7f4e6e9 100644
--- a/gnu/packages/printers.scm
+++ b/gnu/packages/printers.scm
@@ -25,10 +25,15 @@
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
   #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (gnu packages check)
   #:use-module (gnu packages libusb)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages python)
+  #:use-module (gnu packages python-check)
+  #:use-module (gnu packages python-web)
+  #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
-  #:use-module (gnu packages python-web))
+  #:use-module (gnu packages web))
 
 ;; This is a module for packages related to printer-like devices, but not
 ;; related to CUPS.
@@ -109,6 +114,113 @@ uploaded files that are known to cause issues while printing and which in
 the past have caused support requests on OctoPrint's Community Forums.")
     (license license:agpl3)))
 
+(define-public octoprint
+  (package
+    (name "octoprint")
+    (version "1.7.2")
+    (source
+     (origin
+       (method git-fetch) ; no tests in the PyPI tarball.
+       (uri (git-reference
+             (url "https://github.com/OctoPrint/OctoPrint")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0zvjnbcmszifvr02rsmfzb5v24f1ss8klrnkd9fcg2351nkpqbbd"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           ;; Remove bundled font-awesome.
+           (delete-file-recursively "src/octoprint/static/vendor") #t))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'relax-version-requirements
+           ;; Octoprint maintains strict version requirements for Python2
+           ;; compatibility.  We're not packaging with Python2, so modify
+           ;; setup.py to relax those versions.  Octoprint will drop Python2
+           ;; support in version 2.0 so we won't need this change after it.
+           (lambda _
+             (substitute* "setup.py"
+               (("cachelib>=0.1,<0.2") "cachelib>=0.1")
+               (("colorlog>=5.0.1,<6") "colorlog>=5.0.1")
+               (("flask>=1.1.4,<2") "flask>=1.1.4")
+               (("itsdangerous>=1.1.0,<2") "itsdangerous>=1.1.0")
+               (("Jinja2>=2.11.3,<3") "Jinja2>=2.11.3")
+               (("markdown>=3.1,<3.2") "markdown>=3.1,<4")
+               (("markupsafe>=1.1,<2.0") "markupsafe>=1.1")
+               (("sarge==0.1.6") "sarge>=0.1.6")
+               (("watchdog==0.10.4") "watchdog>=0.10.4")
+               (("werkzeug>=1.0.1,<2") "werkzeug>=1.0.1")
+               (("wrapt>=1.12.1,<1.13") "wrapt>=1.12.1")
+               (("zeroconf>=0.33,<0.34") "zeroconf>=0.33"))))
+         (add-before 'check 'set-home
+           (lambda _
+             (setenv "HOME" (getcwd)))) ; some tests need a writable home
+         (replace 'check
+           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "python" "-m" "pytest" "tests" "-k"
+                       (string-append
+                        ;; These tests try to write to the source tree and
+                        ;; fail with PermissionError.
+                        "not test_add_file_overwrite"
+                        " and not test_set_external_modification"))))))))
+    (native-inputs
+     (list python-ddt python-mock python-pytest python-pytest-doctest-custom))
+    (inputs
+     (list octoprint-filecheck
+           octoprint-firmwarecheck
+           octoprint-pisupport
+           python-appdirs
+           python-blinker
+           python-cachelib
+           python-click
+           python-colorlog
+           python-emoji
+           python-feedparser
+           python-filetype
+           python-flask
+           python-flask-assets
+           python-flask-babel
+           python-flask-login
+           python-future
+           python-immutabledict
+           python-itsdangerous
+           python-jinja2
+           python-markdown
+           python-markupsafe
+           python-netaddr
+           python-netifaces
+           python-pathvalidate
+           python-pkginfo
+           python-psutil
+           python-pylru
+           python-pyserial
+           python-pyyaml
+           python-regex
+           python-requests
+           python-sarge
+           python-semantic-version
+           python-sentry-sdk
+           python-tornado-6
+           python-unidecode
+           python-watchdog
+           python-websocket-client
+           python-werkzeug
+           python-wrapt
+           python-zeroconf
+           python-zipstream-new))
+    (home-page "https://octoprint.org")
+    (synopsis "Web interface for 3D printers")
+    (description "OctoPrint provides a snappy web interface for controlling
+consumer 3D printers.")
+    ;; The web interface contains many third party JavaScript libraries under
+    ;; different licenses.  Check THIRDPARTYLICENSES.md.
+    (license license:agpl3)))
+
 (define-public robocut
   (package
     (name "robocut")
-- 
2.30.2





  parent reply	other threads:[~2021-12-27 23:34 UTC|newest]

Thread overview: 114+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-21  3:51 [bug#51314] [PATCH 00/29] Add Octoprint (web UI for 3d printers) Vinicius Monego
2021-10-21  3:52 ` [bug#51314] [PATCH 01/29] gnu: Add python-filetype Vinicius Monego
2021-10-21  3:52   ` [bug#51314] [PATCH 02/29] gnu: Add python-immutabledict Vinicius Monego
2021-10-21  3:52   ` [bug#51314] [PATCH 03/29] gnu: Add python-emoji Vinicius Monego
2021-10-21  3:52   ` [bug#51314] [PATCH 04/29] gnu: Add python-cachelib Vinicius Monego
2021-10-21  4:01 ` [bug#51314] [PATCH 05/29] gnu: Add python-sarge Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 06/29] gnu: Add python-pylru Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 07/29] gnu: python-flask: Update to 1.1.4 Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 08/29] gnu: python-flask: Respect #:tests? Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 09/29] gnu: Add python-pyscss Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 10/29] gnu: Add python-flask-assets Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 11/29] gnu: Add python-zipstream-new Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 12/29] gnu: Add python-executing Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 13/29] gnu: Add python-sentry-sdk Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 14/29] gnu: Add python-pytest-doctest-custom Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 15/29] gnu: Add python-sgmllib3k Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 16/29] gnu: python-feedparser: Update to 6.0.8 Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 17/29] gnu: python-feedparser: Enable tests Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 18/29] gnu: python-netifaces: Update to 0.11.0 Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 19/29] gnu: python-websocket-client: Update to 0.59.0 Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 20/29] gnu: python-pkginfo: Update to 1.7.1 Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 21/29] gnu: python-watchdog: Update to 0.10.7 Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 22/29] gnu: python-colorlog: Update to 5.0.1 Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 23/29] gnu: python-zeroconf: Update to 0.33.4 Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 24/29] gnu: python-wrapt: Update to 1.12.1 Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 25/29] gnu: python-wrapt: Enable tests Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 26/29] gnu: Add octoprint-pisupport Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 27/29] gnu: Add octoprint-firmwarecheck Vinicius Monego
2021-10-21  4:01   ` [bug#51314] [PATCH 28/29] gnu: Add octoprint-filecheck Vinicius Monego
2021-10-21  4:02   ` [bug#51314] [PATCH 29/29] gnu: Add octoprint Vinicius Monego
2021-11-08 20:38 ` [bug#51314] [PATCH 00/29] Add Octoprint (web UI for 3d printers) Efraim Flashner
2021-11-13 19:44   ` Vinicius Monego
2021-11-14  8:44     ` Efraim Flashner
2021-11-14 14:07       ` Vinicius Monego
2021-11-14 14:30         ` Efraim Flashner
2021-11-13 20:02 ` [bug#51314] [PATCH v2 01/24] gnu: Add python-sarge Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 02/24] gnu: Add python-pylru Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 03/24] gnu: python-flask: Update to 1.1.4 Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 04/24] gnu: python-flask: Respect #:tests? Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 05/24] gnu: Add python-pyscss Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 06/24] gnu: Add python-flask-assets Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 07/24] gnu: Add python-zipstream-new Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 08/24] gnu: Add python-executing Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 09/24] gnu: Add python-sentry-sdk Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 10/24] gnu: Add python-pytest-doctest-custom Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 11/24] gnu: python-feedparser: Update to 6.0.8 Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 12/24] gnu: python-feedparser: Enable tests Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 13/24] gnu: python-netifaces: Update to 0.11.0 Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 14/24] gnu: python-websocket-client: Update to 0.59.0 Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 15/24] gnu: python-pkginfo: Update to 1.7.1 Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 16/24] gnu: python-watchdog: Update to 2.1.6 Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 17/24] gnu: python-colorlog: Update to 6.6.0 Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 18/24] gnu: python-zeroconf: Update to 0.36.13 Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 19/24] gnu: python-wrapt: Update to 1.13.3 Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 20/24] gnu: python-wrapt: Enable tests Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 21/24] gnu: Add octoprint-pisupport Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 22/24] gnu: Add octoprint-firmwarecheck Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 23/24] gnu: Add octoprint-filecheck Vinicius Monego
2021-11-13 20:02   ` [bug#51314] [PATCH v2 24/24] gnu: Add octoprint Vinicius Monego
2021-12-27 23:30 ` [bug#51314] [PATCH v3 00/21] Add Octoprint (v3) Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 01/21] gnu: Add python-sarge Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 02/21] gnu: Add python-pylru Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 03/21] gnu: Add python-pyscss Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 04/21] gnu: Add python-flask-assets Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 05/21] gnu: Add python-zipstream-new Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 06/21] gnu: Add python-executing Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 07/21] gnu: Add python-sentry-sdk Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 08/21] gnu: Add python-pytest-doctest-custom Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 09/21] gnu: python-feedparser: Enable tests Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 10/21] gnu: python-netifaces: Update to 0.11.0 Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 11/21] gnu: python-websocket-client: Update to 0.59.0 Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 12/21] gnu: python-pkginfo: Update to 1.8.2 Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 13/21] gnu: python-watchdog: Update to 2.1.6 Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 14/21] gnu: python-colorlog: Update to 6.6.0 Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 15/21] gnu: python-zeroconf: Update to 0.38.1 Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 16/21] gnu: python-wrapt: Update to 1.13.3 Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 17/21] gnu: python-wrapt: Enable tests Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 18/21] gnu: Add octoprint-pisupport Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 19/21] gnu: Add octoprint-firmwarecheck Vinicius Monego
2021-12-27 23:30   ` [bug#51314] [PATCH v3 20/21] gnu: Add octoprint-filecheck Vinicius Monego
2021-12-27 23:30   ` Vinicius Monego [this message]
2022-01-07 21:02   ` [bug#51314] [PATCH v3 00/21] Add Octoprint (v3) Nicolas Goaziou
2022-01-08  5:41     ` Vinicius Monego
2022-01-11 17:27       ` Nicolas Goaziou
2022-05-29 18:27 ` [bug#51314] [PATCH v4 00/14] Add Octoprint (web UI for 3d printers) Vinicius Monego
2022-05-29 18:27   ` [bug#51314] [PATCH v4 01/14] gnu: python-sentry-sdk: Update to 1.5.12 Vinicius Monego
2022-05-29 18:27   ` [bug#51314] [PATCH v4 02/14] gnu: python-frozendict: Update to 2.3.2 Vinicius Monego
2022-05-29 18:27   ` [bug#51314] [PATCH v4 03/14] gnu: Remove python-zipstream-new Vinicius Monego
2022-05-29 18:35     ` Maxime Devos
2022-05-30 20:26       ` Vinicius Monego
2022-05-29 18:27   ` [bug#51314] [PATCH v4 04/14] gnu: Add python-zipstream-ng Vinicius Monego
2022-05-29 18:27   ` [bug#51314] [PATCH v4 05/14] gnu: Add python-zeroconf-0.33 Vinicius Monego
2022-05-29 22:00     ` Maxime Devos
2022-05-30 20:55       ` Vinicius Monego
2022-05-30 21:30         ` Maxime Devos
2022-05-29 18:27   ` [bug#51314] [PATCH v4 06/14] gnu: Add python-cachelib-0.2 Vinicius Monego
2022-05-29 18:27   ` [bug#51314] [PATCH v4 07/14] gnu: Add python-wrapt-1.13 Vinicius Monego
2022-05-29 18:27   ` [bug#51314] [PATCH v4 08/14] gnu: Add python-watchdog-1 Vinicius Monego
2022-05-29 18:27   ` [bug#51314] [PATCH v4 09/14] gnu: Add python-sarge-0.1.6 Vinicius Monego
2022-05-29 18:27   ` [bug#51314] [PATCH v4 10/14] gnu: Add python-flask-login-0.5 Vinicius Monego
2022-05-29 18:27   ` [bug#51314] [PATCH v4 11/14] gnu: Add octoprint-pisupport Vinicius Monego
2022-05-29 21:47     ` Maxime Devos
2022-05-30 20:35       ` Vinicius Monego
2022-05-29 18:27   ` [bug#51314] [PATCH v4 12/14] gnu: Add octoprint-firmwarecheck Vinicius Monego
2022-05-29 21:51     ` Maxime Devos
2022-05-29 18:27   ` [bug#51314] [PATCH v4 13/14] gnu: Add octoprint-filecheck Vinicius Monego
2022-05-29 18:27   ` [bug#51314] [PATCH v4 14/14] gnu: Add octoprint Vinicius Monego
2022-05-29 21:58     ` Maxime Devos
2022-05-30 20:46       ` Vinicius Monego
2022-05-30 21:09         ` Maxime Devos
2022-12-10 12:24 ` [bug#51314] Test patches on Prusa i3 MK3S phodina via Guix-patches via
2022-12-25 17:57   ` phodina via Guix-patches via
2022-12-26 12:10     ` [bug#54299] " Maxime Devos
2022-12-26 12:36       ` [bug#51314] " phodina via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211227233044.26475-22-monego@posteo.net \
    --to=monego@posteo.net \
    --cc=51314@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.