GNU bug report logs - #75675
[PATCH 0/2] Package bCNC

Previous Next

Package: guix-patches;

Reported by: Evgeny Pisemsky <mail <at> pisemsky.site>

Date: Sun, 19 Jan 2025 20:14:02 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75675 in the body.
You can then email your comments to 75675 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#75675; Package guix-patches. (Sun, 19 Jan 2025 20:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Evgeny Pisemsky <mail <at> pisemsky.site>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 19 Jan 2025 20:14:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Evgeny Pisemsky <mail <at> pisemsky.site>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/2] Package bCNC
Date: Sun, 19 Jan 2025 23:12:42 +0300
[0000-cover-letter.patch (text/x-patch, inline)]
From 2ed34b3352d4f0cef5a38e11db962a7081cc3ba9 Mon Sep 17 00:00:00 2001
Message-ID: <cover.1737317203.git.mail <at> pisemsky.site>
From: Evgeny Pisemsky <mail <at> pisemsky.site>
Date: Sun, 19 Jan 2025 23:06:43 +0300
Subject: [PATCH 0/2] Package bCNC

Evgeny Pisemsky (2):
  gnu: Add python-shxparser.
  gnu: Add bcnc.

 gnu/packages/engineering.scm | 40 ++++++++++++++++++++++++++++++++++++
 gnu/packages/python-xyz.scm  | 20 ++++++++++++++++++
 2 files changed, 60 insertions(+)


base-commit: 5e834c220e81fddb77a26e23cf0cd5055b866844
-- 
2.47.1





Information forwarded to guix-patches <at> gnu.org:
bug#75675; Package guix-patches. (Sun, 19 Jan 2025 20:17:01 GMT) Full text and rfc822 format available.

Message #8 received at 75675 <at> debbugs.gnu.org (full text, mbox):

From: Evgeny Pisemsky <mail <at> pisemsky.site>
To: 75675 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: Add python-shxparser.
Date: Sun, 19 Jan 2025 23:15:23 +0300
[0001-gnu-Add-python-shxparser.patch (text/x-patch, inline)]
From 1b7970f6f1de755fd7f33894c0914a5a0d9a1eaf Mon Sep 17 00:00:00 2001
Message-ID: <1b7970f6f1de755fd7f33894c0914a5a0d9a1eaf.1737317203.git.mail <at> pisemsky.site>
In-Reply-To: <cover.1737317203.git.mail <at> pisemsky.site>
References: <cover.1737317203.git.mail <at> pisemsky.site>
From: Evgeny Pisemsky <mail <at> pisemsky.site>
Date: Sun, 19 Jan 2025 22:45:44 +0300
Subject: [PATCH 1/2] gnu: Add python-shxparser.

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

Change-Id: Ic483dcd34f58632b191f2ee592c6cdb9dff1f4e7
---
 gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 728ce91381..596348cd95 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -33724,6 +33724,26 @@ (define-public python-dparse
     (description "This package provides a parser for Python dependency files.")
     (license license:expat)))
 
+(define-public python-shxparser
+  (package
+    (name "python-shxparser")
+    (version "0.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "shxparser" version))
+       (sha256
+        (base32 "0w7j5ywskandp91v74966pw1pvq9d5zrx5gkjcn84xi8wsyf8hc5"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-svgelements python-setuptools python-wheel))
+    (home-page "https://github.com/tatarize/shxparser")
+    (synopsis "SHX line font parser")
+    (description
+     "This is a pure python parser for SHX Hershey font files that are an
+AutoCad format which can encode single line fonts.  This format is
+used for many CNC and laser operations.")
+    (license license:expat)))
+
 (define-public python-dpath
   (package
     (name "python-dpath")
-- 
2.47.1





Information forwarded to guix-patches <at> gnu.org:
bug#75675; Package guix-patches. (Sun, 19 Jan 2025 20:18:01 GMT) Full text and rfc822 format available.

Message #11 received at 75675 <at> debbugs.gnu.org (full text, mbox):

From: Evgeny Pisemsky <mail <at> pisemsky.site>
To: 75675 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: Add bcnc.
Date: Sun, 19 Jan 2025 23:17:48 +0300
[0002-gnu-Add-bcnc.patch (text/x-patch, inline)]
From 2ed34b3352d4f0cef5a38e11db962a7081cc3ba9 Mon Sep 17 00:00:00 2001
Message-ID: <2ed34b3352d4f0cef5a38e11db962a7081cc3ba9.1737317203.git.mail <at> pisemsky.site>
In-Reply-To: <cover.1737317203.git.mail <at> pisemsky.site>
References: <cover.1737317203.git.mail <at> pisemsky.site>
From: Evgeny Pisemsky <mail <at> pisemsky.site>
Date: Sun, 19 Jan 2025 23:00:12 +0300
Subject: [PATCH 2/2] gnu: Add bcnc.

* gnu/packages/engineering.scm (bcnc): New variable.

Change-Id: If72638b7772ec4304bca0ea18fd3f1a57f61512f
---
 gnu/packages/engineering.scm | 40 ++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index f9c4ac9bbd..a2e5346080 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -4652,6 +4652,46 @@ (define-public xschem
       (home-page "https://xschem.sourceforge.io/stefan/index.html")
       (license license:gpl2+))))
 
+(define-public bcnc
+  (package
+    (name "bcnc")
+    (version "0.9.15")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "bCNC" version))
+       (sha256
+        (base32 "1wsz5ppgncn992znj9wpkvjkf87m93zb2pdzlas53nnj2j4pz9vw"))
+       ;; Comment out opencv-python which cannot be detected because
+       ;; the opencv python library lacks necessary metadata files.
+       ;; https://github.com/opencv/opencv-python/issues/944
+       (modules '((guix build utils)))
+       (snippet '(substitute* "setup.py"
+                   (("\"opencv-python.*" line)
+                    (string-append "# " line))
+                   (("\\+.*" line)
+                    (string-append "# " line))))))
+    (build-system pyproject-build-system)
+    ;; Tests require pyautogui which is not packaged yet.
+    (arguments
+     (list
+      #:tests? #f))
+    (native-inputs (list python-setuptools python-wheel))
+    (inputs (list `(,python "tk")))
+    (propagated-inputs (list opencv
+                             python-numpy
+                             python-pillow
+                             python-pyserial
+                             python-shxparser
+                             python-svgelements))
+    (home-page "https://github.com/vlachoudis/bCNC")
+    (synopsis "Swiss army knife for all your CNC/g-code needs")
+    (description
+     "GrblHAL CNC command sender, autoleveler, g-code editor, digitizer, CAM
+and swiss army knife for all your CNC needs.  The sender is robust and
+fast able to work nicely with old or slow hardware.")
+    (license (list license:gpl2+ license:bsd-3 license:expat))))
+
 (define-public candle
   ;; The latest tagged version 1.2b fails on the build stage due to
   ;; non-supported g++ flags so we need to use the latest commit from the
-- 
2.47.1





Information forwarded to guix-patches <at> gnu.org:
bug#75675; Package guix-patches. (Wed, 19 Feb 2025 09:10:02 GMT) Full text and rfc822 format available.

Message #14 received at 75675 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 75675 <at> debbugs.gnu.org
Subject: [PATCH 0/2] Package bCNC
Date: Wed, 19 Feb 2025 09:09:12 +0000
[Message part 1 (text/plain, inline)]
Hi,

--8<---------------cut here---------------start------------->8---
+    (build-system pyproject-build-system)
+    ;; Tests require pyautogui which is not packaged yet.
+    (arguments
+     (list
+      #:tests? #f))
--8<---------------cut here---------------end--------------->8---
Did you try to keep some portion of tests or they all depend on
pyautogui?

https://github.com/vlachoudis/bCNC/tree/master/tests

I've checked pyautogui, we may keep it for the next iteration for now,
more than a half missing dependencies.

https://github.com/asweigart/pyautogui/blob/master/setup.py

+ python3-Xlib
+ pymsgbox
- pytweening
- pyscreeze
- pygetwindow
- mouseinfo

---
Oleg
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#75675; Package guix-patches. (Sun, 23 Feb 2025 09:51:02 GMT) Full text and rfc822 format available.

Message #17 received at 75675 <at> debbugs.gnu.org (full text, mbox):

From: Evgeny Pisemsky <mail <at> pisemsky.site>
To: 75675 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [PATCH 0/2] Package bCNC
Date: Sun, 23 Feb 2025 12:50:30 +0300
> Did you try to keep some portion of tests or they all depend on
> pyautogui?

They all depend on pyautogui.




Information forwarded to guix-patches <at> gnu.org:
bug#75675; Package guix-patches. (Sun, 09 Mar 2025 21:53:01 GMT) Full text and rfc822 format available.

Message #20 received at 75675 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 75675 <at> debbugs.gnu.org
Cc: Evgeny Pisemsky <mail <at> pisemsky.site>
Subject: [PATCH 0/2] Package bCNC
Date: Sun, 09 Mar 2025 21:52:26 +0000
[Message part 1 (text/plain, inline)]
Hi Evgeny,

I tried to apply this patch series but it looks like it out of sync with
the current master HEAD, same issue happens when I check out on provided
base-commit: 5e834c220e81fddb77a26e23cf0cd5055b866844.

May you have a look please and send v2?

--
Oleg
[signature.asc (application/pgp-signature, inline)]

Information forwarded to lars <at> 6xq.net, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#75675; Package guix-patches. (Mon, 10 Mar 2025 15:37:02 GMT) Full text and rfc822 format available.

Message #23 received at 75675 <at> debbugs.gnu.org (full text, mbox):

From: Evgeny Pisemsky <mail <at> pisemsky.site>
To: 75675 <at> debbugs.gnu.org
Subject: [PATCH v1 1/2] gnu: Add python-shxparser.
Date: Mon, 10 Mar 2025 18:36:14 +0300
* gnu/packages/python-xyz.scm (python-shxparser): New variable.

Change-Id: Iaa4bdc216f0e06595237d6fb8e5ee138797605bc
---
 gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9f2829c4a8..ae644d80fd 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -34576,6 +34576,26 @@ (define-public python-dparse
     (description "This package provides a parser for Python dependency files.")
     (license license:expat)))
 
+(define-public python-shxparser
+  (package
+    (name "python-shxparser")
+    (version "0.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "shxparser" version))
+       (sha256
+        (base32 "0w7j5ywskandp91v74966pw1pvq9d5zrx5gkjcn84xi8wsyf8hc5"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-svgelements python-setuptools python-wheel))
+    (home-page "https://github.com/tatarize/shxparser")
+    (synopsis "SHX line font parser")
+    (description
+     "This is a pure python parser for SHX Hershey font files that are an
+AutoCad format which can encode single line fonts.  This format is
+used for many CNC and laser operations.")
+    (license license:expat)))
+
 (define-public python-dpath
   (package
     (name "python-dpath")

base-commit: 519fc51b6ecfe9ac9f2fa2f4ae052ab1984eed22
-- 
2.48.1





Information forwarded to csantosb <at> inventati.org, maxim.cournoyer <at> gmail.com, guix-patches <at> gnu.org:
bug#75675; Package guix-patches. (Mon, 10 Mar 2025 15:37:02 GMT) Full text and rfc822 format available.

Message #26 received at 75675 <at> debbugs.gnu.org (full text, mbox):

From: Evgeny Pisemsky <mail <at> pisemsky.site>
To: 75675 <at> debbugs.gnu.org
Subject: [PATCH v1 2/2] gnu: Add bcnc.
Date: Mon, 10 Mar 2025 18:36:15 +0300
* gnu/packages/engineering.scm (bcnc): New variable.

Change-Id: If72638b7772ec4304bca0ea18fd3f1a57f61512f
---
 gnu/packages/engineering.scm | 40 ++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 225400852a..fff2cf6eaa 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -4914,6 +4914,46 @@ (define-public xschem
       (home-page "https://xschem.sourceforge.io/stefan/index.html")
       (license license:gpl2+))))
 
+(define-public bcnc
+  (package
+    (name "bcnc")
+    (version "0.9.15")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "bCNC" version))
+       (sha256
+        (base32 "1wsz5ppgncn992znj9wpkvjkf87m93zb2pdzlas53nnj2j4pz9vw"))
+       ;; Comment out opencv-python which cannot be detected because
+       ;; the opencv python library lacks necessary metadata files.
+       ;; https://github.com/opencv/opencv-python/issues/944
+       (modules '((guix build utils)))
+       (snippet '(substitute* "setup.py"
+                   (("\"opencv-python.*" line)
+                    (string-append "# " line))
+                   (("\\+.*" line)
+                    (string-append "# " line))))))
+    (build-system pyproject-build-system)
+    ;; Tests require pyautogui which is not packaged yet.
+    (arguments
+     (list
+      #:tests? #f))
+    (native-inputs (list python-setuptools python-wheel))
+    (inputs (list `(,python "tk")))
+    (propagated-inputs (list opencv
+                             python-numpy
+                             python-pillow
+                             python-pyserial
+                             python-shxparser
+                             python-svgelements))
+    (home-page "https://github.com/vlachoudis/bCNC")
+    (synopsis "Swiss army knife for all your CNC/g-code needs")
+    (description
+     "GrblHAL CNC command sender, autoleveler, g-code editor, digitizer, CAM
+and swiss army knife for all your CNC needs.  The sender is robust and
+fast able to work nicely with old or slow hardware.")
+    (license (list license:gpl2+ license:bsd-3 license:expat))))
+
 (define-public candle
   ;; The latest tagged version 1.2b fails on the build stage due to
   ;; non-supported g++ flags so we need to use the latest commit from the
-- 
2.48.1





Reply sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
You have taken responsibility. (Tue, 11 Mar 2025 20:04:01 GMT) Full text and rfc822 format available.

Notification sent to Evgeny Pisemsky <mail <at> pisemsky.site>:
bug acknowledged by developer. (Tue, 11 Mar 2025 20:04:02 GMT) Full text and rfc822 format available.

Message #31 received at 75675-done <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 75675-done <at> debbugs.gnu.org
Subject: [PATCH 0/2] Package bCNC
Date: Tue, 11 Mar 2025 20:03:01 +0000
[Message part 1 (text/plain, inline)]
Hi,

Pushed to master with comments on bundled Python's sources, which may
need to be unbundled.

d685a45edf * gnu: Add bcnc.
0cbc54c162 * gnu: Add python-shxparser.

--
Oleg
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 09 Apr 2025 11:24:20 GMT) Full text and rfc822 format available.

This bug report was last modified 71 days ago.

Previous Next


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