GNU bug report logs - #50987
[PATCH 1/2] gnu: Add python-pyphotonfile.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: phodina <phodina@HIDDEN>; Keywords: patch moreinfo; dated Sun, 3 Oct 2021 07:42:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Added tag(s) moreinfo. Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 50987 <at> debbugs.gnu.org:


Received: (at 50987) by debbugs.gnu.org; 3 Oct 2021 07:49:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 03 03:49:11 2021
Received: from localhost ([127.0.0.1]:60939 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mWwFD-0005vx-MT
	for submit <at> debbugs.gnu.org; Sun, 03 Oct 2021 03:49:11 -0400
Received: from mail-40131.protonmail.ch ([185.70.40.131]:50508)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <phodina@HIDDEN>) id 1mWwFC-0005vj-Ey
 for 50987 <at> debbugs.gnu.org; Sun, 03 Oct 2021 03:49:10 -0400
Date: Sun, 03 Oct 2021 07:48:59 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail; t=1633247340;
 bh=ZzAatDBo2/n7ucP6yUEH1KsXnBo0JN+jP9aUuglTEVk=;
 h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From;
 b=aCvB6AijaAy5Ne5mZppeVWVxOJjcTvPzow0t0/3LGPmjM2xny8E/RWKoxlY3PW2xU
 m4hAVvJqUZFoIIbgM9/G4KQCRphVnwnXLV/xWZ+4NjYlRLGcnwyc5fmhljutzOkD2e
 rOOKN3k/BEkxFvslLxjwVFojJ5HGXAWtl2QtMv7Y=
To: "50987 <at> debbugs.gnu.org" <50987 <at> debbugs.gnu.org>
From: phodina <phodina@HIDDEN>
Subject: Re: [PATCH 2/2] gnu: Add python-sl1tophoton.
Message-ID: <D0_dyXueQuCOKYukS0rrfgN0czIHYVwBYqDMHwsdG6Pq4puk7lmDSahJJHSqYewEB7v63AIe9JnUJqk8zvKLxzm6Eq9sFxakgRft2YLafdQ=@protonmail.com>
In-Reply-To: <4Ru7g6bih3h2SgDG2izfiqmCEcySJ3xMOcvEtcn7fGoeBhTPYjYvgW8wnK77o7nrGnaILCrMu949HnZwEpEmGsw0UWtmOCHIlYFMJA0OIkg=@protonmail.com>
References: <4Ru7g6bih3h2SgDG2izfiqmCEcySJ3xMOcvEtcn7fGoeBhTPYjYvgW8wnK77o7nrGnaILCrMu949HnZwEpEmGsw0UWtmOCHIlYFMJA0OIkg=@protonmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no
 autolearn=disabled version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 mailout.protonmail.ch
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 50987
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: phodina <phodina@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Guix,

these patches allow users to use Prusa Slicer to slice the model and conver=
t it to the format for the appropriate HW instead of using proprietary soft=
ware.

However, there is one issue with the patch in python-sl1tophoton. In the in=
stall phase it crates the executables in gnu/store/xxxxx/bin but it attempt=
s to launch them as a shell script instead of python.

Do you know how to fix that?




Information forwarded to guix-patches@HIDDEN:
bug#50987; Package guix-patches. Full text available.

Message received at 50987 <at> debbugs.gnu.org:


Received: (at 50987) by debbugs.gnu.org; 3 Oct 2021 07:44:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 03 03:44:02 2021
Received: from localhost ([127.0.0.1]:60935 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mWwAE-0005mS-1T
	for submit <at> debbugs.gnu.org; Sun, 03 Oct 2021 03:44:02 -0400
Received: from mail-40136.protonmail.ch ([185.70.40.136]:51391)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <phodina@HIDDEN>) id 1mWwAD-0005ls-2h
 for 50987 <at> debbugs.gnu.org; Sun, 03 Oct 2021 03:44:01 -0400
Date: Sun, 03 Oct 2021 07:43:53 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail; t=1633247034;
 bh=Ww03LNhAco1uHPqFRTGfDQKhbhbBaiY/mcdyV3TAj/c=;
 h=Date:To:From:Reply-To:Subject:From;
 b=DxaepbUX2siKWib4toGzvequZpJb3IxnMivlcTov+jHvyzbV7DxOGl79FMaVRt/hH
 qOCZcI96vziKPzhLxhPFzYoK41raZGSDC0hz/eFWvN8Ge4pV+hr9Nl0/KgypwKSL3a
 YKhs2MAPX63oiXechagsDFlRErAWXnPQNApCZuZQ=
To: "50987 <at> debbugs.gnu.org" <50987 <at> debbugs.gnu.org>
From: phodina <phodina@HIDDEN>
Subject: [PATCH 2/2] gnu: Add python-sl1tophoton.
Message-ID: <4Ru7g6bih3h2SgDG2izfiqmCEcySJ3xMOcvEtcn7fGoeBhTPYjYvgW8wnK77o7nrGnaILCrMu949HnZwEpEmGsw0UWtmOCHIlYFMJA0OIkg=@protonmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no
 autolearn=disabled version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 mailout.protonmail.ch
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 50987
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: phodina <phodina@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/python-xyz.scm (python-sl1tophoton): New variable.

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5f4df4c7fb..0c56c61946 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -547,6 +547,43 @@ Markdown.  All extensions are found under the module n=
amespace of pymdownx.")
 generator MkDocs.")
     (license license:expat)))

+(define-public python-sl1tophoton
+  (package
+    (name "python-sl1tophoton")
+    (version "0.1.3")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/fookatchu/SL1toPhoton")
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32
+            "1hmb74rcky3nax4lxn7pw6lcd5a66fdbwrm11c84zb31xb51bakw"))))
+    (build-system python-build-system)
+    (arguments
+      `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'install 'install-binary
+             (lambda* (#:key outputs #:allow-other-keys)
+               (let* ((bin (string-append (assoc-ref outputs "out") "/bin"=
)))
+                 (mkdir-p bin)
+                 (install-file "SL1_to_Photon_gui.py" bin)
+                 (install-file "SL1_to_Photon.py" bin)
+                 (chmod (string-append bin "/SL1_to_Photon_gui.py") #o555)
+                 (chmod (string-append bin "/SL1_to_Photon.py") #o555)))))=
))
+    (inputs `(("python-pyphotonfile", python-pyphotonfile)
+              ("python-numpy" ,python-numpy)
+              ("python-pyside-2" ,python-pyside-2)
+              ("python-pillow" ,python-pillow)))
+    (home-page "https://github.com/fookatchu/SL1toPhoton")
+    (synopsis "Converter for SL1 to Photon files")
+    (description "SL1toPhoton is a tool for converting PrusaSlicer's SL1 f=
iles
+to Photon files for the Anycubic Photon 3D-Printer.  Other cbddlp-files sh=
ould
+also work (e.G. Elegoo Mars).")
+    (license license:gpl3)))
+
 (define-public python-slixmpp
   (package
     (name "python-slixmpp")
--
2.32.0




Information forwarded to guix-patches@HIDDEN:
bug#50987; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Oct 2021 07:41:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 03 03:41:31 2021
Received: from localhost ([127.0.0.1]:60930 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mWw7n-0005i6-Jg
	for submit <at> debbugs.gnu.org; Sun, 03 Oct 2021 03:41:31 -0400
Received: from lists.gnu.org ([209.51.188.17]:54166)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <phodina@HIDDEN>) id 1mWw7l-0005hy-Ew
 for submit <at> debbugs.gnu.org; Sun, 03 Oct 2021 03:41:29 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:36402)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <phodina@HIDDEN>)
 id 1mWw7j-0002tJ-HR
 for guix-patches@HIDDEN; Sun, 03 Oct 2021 03:41:29 -0400
Received: from mail2.protonmail.ch ([185.70.40.22]:31548)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <phodina@HIDDEN>)
 id 1mWw7h-0007zi-9A
 for guix-patches@HIDDEN; Sun, 03 Oct 2021 03:41:27 -0400
Date: Sun, 03 Oct 2021 07:41:20 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail; t=1633246881;
 bh=4lvmhc1tjrFbZgQsThaGg2CkF5NHjQVZCVpFbAvcfCY=;
 h=Date:To:From:Reply-To:Subject:From;
 b=pDdDQ0XXf0KSqybSPSNoGZeT1UJtNkBiqLJhHez0j1LSKPe1XHf72SI+AY9bBE+uo
 jXuPhTpg9/S8hD/2hVvGuqrC/C1DgdT6ewXXFGeMU3xzJtrHmZ0/E82xOzAVl9JrFc
 22CCT+YxDbzXm7A1MGPQsVEFnRFGwoAUNBJ7P+Kk=
To: phodina via Guix-patches via <guix-patches@HIDDEN>
From: phodina <phodina@HIDDEN>
Subject: [PATCH 1/2] gnu: Add python-pyphotonfile.
Message-ID: <wWL2JJwgAO2nHCWccvc6EdD_PbUvZYevHcUC9W6DZijZ2zf1x4GTxMR9PFFcEWDRSUONBwqotcUdBMvCJ3MxpfPEXFAJtGCz9jWQPOKchgE=@protonmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no
 autolearn=disabled version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 mailout.protonmail.ch
Received-SPF: pass client-ip=185.70.40.22; envelope-from=phodina@HIDDEN;
 helo=mail2.protonmail.ch
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: phodina <phodina@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

* gnu/packages/python-xyz.scm (python-pyphotonfile): New variable.

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 14f5fdef54..5f4df4c7fb 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23237,6 +23237,31 @@ qvarious formats: PDF, PostScript, PNG and even SV=
G.")
 existing Hunspell hyphenation dictionaries.")
     (license (list license:gpl2 license:lgpl2.1 license:mpl1.1))))

+(define-public python-pyphotonfile
+  (package
+    (name "python-pyphotonfile")
+    (version "0.2.1")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/fookatchu/pyphotonfile")
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32
+            "1hh1fcn7q3kyk2413pjs18xnxvzrchrisbpj2cd59jrdp0qzgv2s"))))
+    (build-system python-build-system)
+    (inputs `(("python-numpy" ,python-numpy)
+              ("python-pillow" ,python-pillow)))
+    (home-page "https://github.com/fookatchu/pyphotonfile")
+    (synopsis "Library for Anycubic Photon 3D-Printer")
+    (description "This package provides library used for manipulating Phot=
on-
+and cbddlp-files created for the Anycubic Photon 3D-Printer and compatible=
s
+(e.g. Elegoo Mars, etc.).  Currently it supports removing and adding new
+layers as well as changing global parameters like the exposure time, etc."=
)
+    (license license:gpl3)))
+
 (define-public python-intelhex
   (package
     (name "python-intelhex")
--
2.32.0




Acknowledgement sent to phodina <phodina@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#50987; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 26 Oct 2021 10:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.