From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:f42::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2FdLOYNNymH6ewAAgWs5BA (envelope-from ) for ; Tue, 28 Dec 2021 00:34:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6JdENoNNymFECgAAauVa8A (envelope-from ) for ; Tue, 28 Dec 2021 00:34:27 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4F48E1306C for ; Tue, 28 Dec 2021 00:34:27 +0100 (CET) Received: from localhost ([::1]:39728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1zVa-00039g-Hg for larch@yhetil.org; Mon, 27 Dec 2021 18:34:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1zUS-0001gV-C9 for guix-patches@gnu.org; Mon, 27 Dec 2021 18:33:16 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33092) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1zUK-0001ht-B8 for guix-patches@gnu.org; Mon, 27 Dec 2021 18:33:16 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1zUK-0000wD-8z for guix-patches@gnu.org; Mon, 27 Dec 2021 18:33:08 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH v3 21/21] gnu: Add octoprint. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Dec 2021 23:33:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51314 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51314@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 51314-submit@debbugs.gnu.org id=B51314.16406479843529 (code B ref 51314); Mon, 27 Dec 2021 23:33:08 +0000 Received: (at 51314) by debbugs.gnu.org; 27 Dec 2021 23:33:04 +0000 Received: from localhost ([127.0.0.1]:44627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1zUF-0000uj-AU for submit@debbugs.gnu.org; Mon, 27 Dec 2021 18:33:03 -0500 Received: from mout01.posteo.de ([185.67.36.65]:38673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1zUC-0000tq-HH for 51314@debbugs.gnu.org; Mon, 27 Dec 2021 18:33:01 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id E97FB240026 for <51314@debbugs.gnu.org>; Tue, 28 Dec 2021 00:32:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1640647974; bh=y+3YGZbNylmSHidnI6Dn+EkPVN2YQ4pzLVbQgD4bsE4=; h=From:To:Cc:Subject:Date:From; b=cfkeRAFu5UZkniaCTz1T6HdGTsxYh90WGdi77sOzvdZChwI/YUV1DXNkJUwuEeFDY wtRiORZ6PkIk1yKdzxqpOv0x3tmHc83VRL3vDpk+YHbqiWJh/NL7iZbp9QXUZZWDRd PHInr7noPZEChaDCD9VYG6ZRxBT+7JXWNyS2J5J7k6yofy1oM/e1JVjwLnFxSEBmtI XZjV05gxDHN5sxIolA9lk6bII3/o4vGQafYEUUomhUBiD91xhaPkt0ouSm0smLw6ap QG6cYg6sXfe0bb2WpK7TcqEpUoMJ4gckCp9Rnpn5WJ5/ikUFUMaD2Ytc2MSr2ns3PZ Ii8EB0Sr8y5JQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JNDVZ0j3Fz9rxF; Tue, 28 Dec 2021 00:32:53 +0100 (CET) From: Vinicius Monego Date: Mon, 27 Dec 2021 23:30:44 +0000 Message-Id: <20211227233044.26475-22-monego@posteo.net> In-Reply-To: <20211227233044.26475-1-monego@posteo.net> References: <20211227233044.26475-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640648067; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=FshdGmbCpeJQmvCe3hEfA7nT1HLMd1+PTU0f1l1M7qs=; b=BhCQLr6pSxYqd2lYtaIabgofmTMNiMSFQM+eyqNnutKSo0LXQ/ZmrG780lZ3mzcHMYB5me er9rV04JeNMTYaoVspKhip7f1CUz3tJvWSPnXbAuc4IwLcLKCx7HPVJ5Lr5JeQJ/pAoXbh hBfwR+LC5ddh9CvpgiCF5m4vZC1+ldMn9n9AKsifbDQRa0kei6AiJySoVar6nhUDk34bkd 2S//Rv76MOIzCj7zeeKZaCAhaRUtePNBcUUMsmSXvauOhto4dSlsbm7GIkwiLMsH7o9qCh WKLIPi7cuYc6t29WHXLAexump1qudgUKd5l74u+uLZT3lut31Vh18cRu01Dw+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640648067; a=rsa-sha256; cv=none; b=s84bqCJnQCoVOwor45XVEzHQ+T6bIh/jrtGj1L4zjF50NdE1SVEudkvOjOYNtG7WpApKcS z7IjYAgjA0n1cE2Xs9aY8aEzI9edojZ6qn2hGdfHM7we8/v2vRVR4vxxgdS3qmIH6jt8GT n5P4QMGtlRAq7el3dHptD+Legv0BAfzewWyAf6X5REYLYy5FAEawElbFnNiHlEi29rDZKq BF9sAo/obDrp7MBfejEp8ucN6M+o91vriyKp1whsYFQx1EDB16jWIDl0Q87nhSncUwEI7k ZEMSCglb79Bw57eo1HgjQEa2NpEmot49KFnMyekg8OPNym3guOGsxozhqjDtwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=cfkeRAFu; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=cfkeRAFu; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4F48E1306C X-Spam-Score: -0.67 X-Migadu-Scanner: scn1.migadu.com X-TUID: UVrmvUcv4E9A * 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