guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#55637] [PATCH] gnu: Add python-pylink-square.


From: peter
Subject: [bug#55637] [PATCH] gnu: Add python-pylink-square.
Date: Thu, 26 May 2022 14:55:42 -0400

From: Peter Polidoro <peter@polidoro.io>

* gnu/packages/embedded.scm (python-pylink-square): New variable.
---
 gnu/packages/embedded.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index 010f5b84d2..75675c2698 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -1699,3 +1699,34 @@ (define-public mbed-tools
 connected by USB, checkout Mbed projects and perform builds amongst other
 operations.")
     (license license:asl2.0)))
+
+(define-public python-pylink-square
+  (package
+    (name "python-pylink-square")
+    (version "0.12.0")
+    (source
+     ;; The tests suite appears to be incomplete in the PyPI archive.
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "http://www.github.com/Square/pylink";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0w0pi91gvaw9k2r267kpc1ryd74v19iq5ysn4j7pf4g2069gbgxf"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'patch-setup
+                    (lambda _
+                      (substitute* "setup.py"
+                        (("mock == 2.0.0") "mock")))))))
+    (native-inputs (list python-mock))
+    (propagated-inputs (list python-future
+                             python-psutil
+                             python-six
+                             libjaylink))
+    (home-page "http://www.github.com/Square/pylink";)
+    (synopsis "Python interface for SEGGER J-Link.")
+    (description "Python interface for SEGGER J-Link.")
+    (license license:asl2.0)))
-- 
2.36.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]