| Message ID | b181495e4c0cef03131f35e643b9db9959d1fbc9.1744120981.git.csantosb@inventati.org |
|---|---|
| State | New |
| Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 248E727BC4A; Tue, 8 Apr 2025 15:05:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6517C27BC49 for <patchwork@mira.cbaines.net>; Tue, 8 Apr 2025 15:05:24 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1u29Zh-0002Db-2i; Tue, 08 Apr 2025 10:05:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1u29ZZ-0002CO-5w for guix-patches@gnu.org; Tue, 08 Apr 2025 10:05:06 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1u29ZY-0005Cu-Nh for guix-patches@gnu.org; Tue, 08 Apr 2025 10:05:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=AgtGf2bWgIZ++9L8oxlMsdJAQ6mSpN+M+40zl52YGPE=; b=vR8U5km9ziCg9aPtCS1ZtVDIg6hYs0rUSN3UWC4ANkJHIDriAkL8C0RXFh8f5jFuu2KqEg19UwqCTBoXPmVemHAgUWDZ0pL8KV9gdnptPRdgDGjYlEHgVT3VCjI0BZDKR5weesJnhLevG1ZTDm0vY+oeTXDz2txBhHARqj6WtD/y10P/e3E/mTKiLLnxiQYI8ah8T/3mqRa//UsqxFZmIUndSJGMESr5MUcI0PNa3QJtggdvITPDJI5QHFcjh4yFvG5+YCp83/EOy++zfOdXmMQrhAnok3rp1zGtqEISvriVIAz10CF/3GavRWEv6nYO2sqsLsblG2wGhqt2w5UUbQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1u29ZX-0004C2-Eh; Tue, 08 Apr 2025 10:05:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77645] [PATCH] gnu: Add python-surf. Resent-From: Cayetano Santos <csantosb@inventati.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: csantosb@inventati.org, ekaitz@elenq.tech, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Tue, 08 Apr 2025 14:05:02 +0000 Resent-Message-ID: <handler.77645.B.174412107215937@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77645 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77645@debbugs.gnu.org Cc: Cayetano Santos <csantosb@inventati.org>, Cayetano Santos <csantosb@inventati.org>, Ekaitz Zarraga <ekaitz@elenq.tech>, Maxim Cournoyer <maxim.cournoyer@gmail.com> X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Cayetano Santos <csantosb@inventati.org>, Ekaitz Zarraga <ekaitz@elenq.tech>, Maxim Cournoyer <maxim.cournoyer@gmail.com> Received: via spool by submit@debbugs.gnu.org id=B.174412107215937 (code B ref -1); Tue, 08 Apr 2025 14:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Apr 2025 14:04:32 +0000 Received: from localhost ([127.0.0.1]:34239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1u29Z0-00048r-At for submit@debbugs.gnu.org; Tue, 08 Apr 2025 10:04:31 -0400 Received: from lists.gnu.org ([2001:470:142::17]:39616) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <csantosb@inventati.org>) id 1u29Yx-00046g-1s for submit@debbugs.gnu.org; Tue, 08 Apr 2025 10:04:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <csantosb@inventati.org>) id 1u29YG-0001n3-Qg for guix-patches@gnu.org; Tue, 08 Apr 2025 10:03:46 -0400 Received: from latitanza.investici.org ([82.94.249.234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <csantosb@inventati.org>) id 1u29YC-0004ms-Tf for guix-patches@gnu.org; Tue, 08 Apr 2025 10:03:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1744121017; bh=AgtGf2bWgIZ++9L8oxlMsdJAQ6mSpN+M+40zl52YGPE=; h=From:To:Cc:Subject:Date:From; b=f9V29TbbHDLe7aC3PvhyKmGYs7ukhS2Cz6YEJ1eUsQTbK8qrTFRKgcbokddYDJB9V wz8Otk/Bh9vRfjUONrhmJrNnlUliPsNxIbPSVeEZw+kYW7/6X39u9j9G5r5IhIdB3v I9iB89NKQtDH+XscaVEyA7JmZeqhaVGk6+Hh4X7w= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4ZX78n0kthzGp5d; Tue, 8 Apr 2025 14:03:37 +0000 (UTC) Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4ZX78m6Z7pzGp4H; Tue, 8 Apr 2025 14:03:36 +0000 (UTC) Date: Tue, 8 Apr 2025 16:03:01 +0200 Message-ID: <b181495e4c0cef03131f35e643b9db9959d1fbc9.1744120981.git.csantosb@inventati.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=82.94.249.234; envelope-from=csantosb@inventati.org; helo=latitanza.investici.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Reply-to: Cayetano Santos <csantosb@inventati.org> X-ACL-Warn: , Cayetano Santos via Guix-patches <guix-patches@gnu.org> From: Cayetano Santos via Guix-patches via <guix-patches@gnu.org> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
| Series |
[bug#77645] gnu: Add python-surf.
|
|
Commit Message
Cayetano Santos
April 8, 2025, 2:03 p.m. UTC
* gnu/packages/electronics.scm (python-surf): New variable. Change-Id: Iddedfd5acfe3dbe04e092de27b42b6fdf1c95fb1 --- gnu/packages/electronics.scm | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) base-commit: 1dab24555a494beb3db5a335c675f07043e77f1c
Comments
Hello Cayetano,
Am Tue, Apr 08, 2025 at 04:03:01PM +0200 schrieb Cayetano Santos:
> + (description "A huge VHDL library for FPGA development.")
could you please replace this by full sentences, preferably a little
longer than just some keywords, and without marketing speak such as
"huge"?
I do not know if you have run "guix lint" on the package, which is
always a good idea.
Thanks,
Andreas
Hi, I'm not sure if this patch may be accepted to Guix because of the licence: --8<---------------cut here---------------start------------->8--- Copyright (c) 2025, The Board of Trustees of the Leland Stanford Junior University, through SLAC National Accelerator Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: --8<---------------cut here---------------end--------------->8--- <https://github.com/slaclab/surf/blob/main/LICENSE.txt> -- Thanks, Oleg
Hi, I'm not sure if this patch may be accepted to Guix because of the licence: --8<---------------cut here---------------start------------->8--- Copyright (c) 2025, The Board of Trustees of the Leland Stanford Junior University, through SLAC National Accelerator Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: --8<---------------cut here---------------end--------------->8--- <https://github.com/slaclab/surf/blob/main/LICENSE.txt> -- Thanks, Oleg
Hello Oleg, thanks for looking at the license, that is always an important step in package submission and acceptance. Am Sun, Apr 13, 2025 at 09:48:28PM +0100 schrieb Sharlatan Hellseher: > --8<---------------cut here---------------start------------->8--- > Copyright (c) 2025, The Board of Trustees of the Leland Stanford Junior > University, through SLAC National Accelerator Laboratory (subject to receipt > of any required approvals from the U.S. Dept. of Energy). All rights reserved. > Redistribution and use in source and binary forms, with or without > modification, are permitted provided that the following conditions are met: > --8<---------------cut here---------------end--------------->8--- > <https://github.com/slaclab/surf/blob/main/LICENSE.txt> The license given there is essentially the bsd-3 license: https://directory.fsf.org/wiki/License:BSD-3-Clause with "the author" replaced by the actual name of the copyright holder. So it is fine to add the package to Guix; I think we use the (define* (non-copyleft uri #:optional (comment "")) "Return a lax, permissive, non-copyleft license (for example a variant of the 3-clause BSD license or the Expat license), whose full text can be found at URI, which may be a file:// URI pointing the package's tree." (license "non-copyleft" uri (string-append "This is a lax, non-copyleft free software license. " "Check the URI for details. " comment))) form of the license in this case, for "a variant of the 3-clause BSD license". Andreas
>Mon 14 Apr 2025 at 10:07, Andreas Enge <andreas@enge.fr> wrote: > Hello Oleg, > > thanks for looking at the license, that is always an important step in > package submission and acceptance. > > Am Sun, Apr 13, 2025 at 09:48:28PM +0100 schrieb Sharlatan Hellseher: >> --8<---------------cut here---------------start------------->8--- >> Copyright (c) 2025, The Board of Trustees of the Leland Stanford Junior >> University, through SLAC National Accelerator Laboratory (subject to receipt >> of any required approvals from the U.S. Dept. of Energy). All rights reserved. >> Redistribution and use in source and binary forms, with or without >> modification, are permitted provided that the following conditions are met: >> --8<---------------cut here---------------end--------------->8--- >> <https://github.com/slaclab/surf/blob/main/LICENSE.txt> > > The license given there is essentially the bsd-3 license: > https://directory.fsf.org/wiki/License:BSD-3-Clause > with "the author" replaced by the actual name of the copyright holder. > > So it is fine to add the package to Guix; I think we use the > (define* (non-copyleft uri #:optional (comment "")) > "Return a lax, permissive, non-copyleft license (for example a variant of > the 3-clause BSD license or the Expat license), whose full text can be found > at URI, which may be a file:// URI pointing the package's tree." > (license "non-copyleft" > uri > (string-append > "This is a lax, non-copyleft free software license. " > "Check the URI for details. " > comment))) > form of the license in this case, for "a variant of the 3-clause BSD > license". > > Andreas Thanks for noticing about the license. I just sent a v2 to fix it.
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
>Mon 14 Apr 2025 at 11:02, Andreas Enge <andreas@enge.fr> wrote: > 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. Ups, sorry about that ! I’ll be more careful next time. Thanks again, C.
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)))