unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#67183] [PATCH] gnu: Add python-canmatrix.
@ 2023-11-14 21:24 Troy Figiel
  2023-11-26 22:30 ` bug#67183: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Troy Figiel @ 2023-11-14 21:24 UTC (permalink / raw)
  To: 67183

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

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e521c1580d..10182893cd 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -145,6 +145,7 @@
 ;;; Copyright © c4droid <c4droid@foxmail.com>
 ;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
 ;;; Copyright © 2023 Attila Lendvai <attila@lendvai.name>
+;;; Copyright © 2023 Troy Figiel <troy@troyfigiel.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2955,6 +2956,39 @@ (define-public python-can
 sending and receiving messages on a CAN bus.")
     (license license:lgpl3+)))

+(define-public python-canmatrix
+  (package
+    (name "python-canmatrix")
+    (version "1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "canmatrix" version))
+       (sha256
+        (base32 "046dzmggfm6h0fvfvwrblvih0blhc70ma0pqxzry3cphc08jvsrg"))
+       ;; The test suite uder ./test is a legacy test suite. The new test
+       ;; suite is defined under src/canmatrix/tests.
+       (modules '((guix build utils)))
+       (snippet '(delete-file-recursively "test"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (when tests?
+                        (invoke "pytest")))))))
+    (propagated-inputs (list python-attrs python-click python-future
+                             python-six))
+    (native-inputs (list python-lxml python-pytest python-xlrd python-xlwt))
+    (home-page "https://github.com/ebroecker/canmatrix")
+    (synopsis "Implements a CAN matrix object in Python")
+    (description
+     "This package implements a CAN matrix object in Python which describes the
+CAN-communication and its needed objects such as board units, frames, signals
+and values.  It also includes two command line tools (canconvert and
+cancompare) for converting and comparing CAN databases.")
+    (license license:bsd-2)))
+
 (define-public python-canopen
   (package
     (name "python-canopen")
--
2.40.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#67183: [PATCH] gnu: Add python-canmatrix.
  2023-11-14 21:24 [bug#67183] [PATCH] gnu: Add python-canmatrix Troy Figiel
@ 2023-11-26 22:30 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2023-11-26 22:30 UTC (permalink / raw)
  To: Troy Figiel; +Cc: 67183-done

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

Hi,

Troy Figiel <troy@troyfigiel.com> skribis:

> * gnu/packages/python-xyz.scm (python-canmatrix): New variable.
>
> Change-Id: I96192f7304388aefe1b5cc358d462d42120ca3a0

Applied with the cosmetic changes below, following
<https://guix.gnu.org/manual/devel/en/html_node/Synopses-and-Descriptions.html>.

Thanks,
Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1262 bytes --]

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ea1b56fa82..746ecccc5a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2981,12 +2981,13 @@ (define-public python-canmatrix
                              python-six))
     (native-inputs (list python-lxml python-pytest python-xlrd python-xlwt))
     (home-page "https://github.com/ebroecker/canmatrix")
-    (synopsis "Implements a CAN matrix object in Python")
+    (synopsis "@acronym{CAN, Controller Area Network} matrices in Python")
     (description
-     "This package implements a CAN matrix object in Python which describes the
-CAN-communication and its needed objects such as board units, frames, signals
-and values.  It also includes two command line tools (canconvert and
-cancompare) for converting and comparing CAN databases.")
+     "This package implements a @acronym{CAN, Controller Area Network} matrix
+object in Python which describes the CAN-communication and its needed objects
+such as board units, frames, signals, and values.  It also includes two
+command-line tools (@command{canconvert} and @command{cancompare}) for
+converting and comparing CAN databases.")
     (license license:bsd-2)))
 
 (define-public python-canopen

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-26 22:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-14 21:24 [bug#67183] [PATCH] gnu: Add python-canmatrix Troy Figiel
2023-11-26 22:30 ` bug#67183: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).