GNU bug report logs -
#77645
[PATCH] gnu: Add python-surf.
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Mon, 14 Apr 2025 11:02:20 +0200
with message-id <Z_zPHKfdDbjJwSuB <at> jurong>
and subject line Re: [PATCH] gnu: Add python-surf.
has caused the debbugs.gnu.org bug report #77645,
regarding [PATCH] gnu: Add python-surf.
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
77645: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77645
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
* gnu/packages/electronics.scm (python-surf): New variable.
Change-Id: Iddedfd5acfe3dbe04e092de27b42b6fdf1c95fb1
---
gnu/packages/electronics.scm | 36 +++++++++++++++++++++++++++++++++++-
1 file changed, 35 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm
index 09875e4d63..bbd9c03ea9 100644
--- a/gnu/packages/electronics.scm
+++ b/gnu/packages/electronics.scm
@@ -64,7 +64,8 @@ (define-module (gnu packages electronics)
#:use-module (gnu packages sdl)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages stb)
- #:use-module (gnu packages toolkits))
+ #:use-module (gnu packages toolkits)
+ #:use-module (gnu packages version-control))
(define-public libserialport
(package
@@ -597,3 +598,36 @@ (define-public python-vsg
"VSG lets you define a VHDL coding style and provides a command-line tool
to enforce it.")
(license license:gpl3+)))
+
+(define-public python-surf
+ (package
+ (name "python-surf")
+ (version "2.57.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/slaclab/surf/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ncb34mdxaw0m6cnk7kvl7mkhwa6hpcxkc2lgarwcmmnfydr8kg3"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-deps
+ (lambda _
+ (invoke "git" "init") ;expects a git repo
+ ;; fix version
+ (substitute* "setup.py"
+ (("rawVer .*")
+ (string-append "rawVer = \"v"
+ #$version "\""))))))))
+ (native-inputs (list python-setuptools python-wheel python-gitpython
+ git-minimal/pinned))
+ (home-page "https://slaclab.github.io/surf/")
+ (synopsis "SLAC Ultimate RTL Framework")
+ (description "A huge VHDL library for FPGA development.")
+ (license license:bsd-3)))
base-commit: 1dab24555a494beb3db5a335c675f07043e77f1c
--
2.49.0
[Message part 3 (message/rfc822, inline)]
Hello,
Am Mon, Apr 14, 2025 at 10:50:18AM +0200 schrieb Cayetano Santos:
> Thanks for noticing about the license. I just sent a v2 to fix it.
you forgot to test whether it works :)
This version does not even compile, since license:non-copyleft is not a
license object, but a function that returns one, see the source code
I copied into my previous message.
Since everything has gone through QA already, I have repaired this and
pushed.
Thanks!
Andreas
This bug report was last modified 93 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.