[PATCH] gnu: Add python-find-libpython.

  • Done
  • quality assurance status badge
Details
2 participants
  • Cayetano Santos
  • Christopher Baines
Owner
unassigned
Submitted by
Cayetano Santos
Severity
normal

Debbugs page

C
C
Cayetano Santos wrote on 29 Mar 2024 01:57
(address . guix-patches@gnu.org)(name . Cayetano Santos)(address . csantosb@inventati.org)
d8c65cdcdbb550a50d99441a5903a59abea52e91.1711702678.git.csantosb@inventati.org
* gnu/packages/python-xyz.scm (python-find-libpython): New variable.
---
gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

Toggle diff (38 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8a6ef23b58..7008ee6ae9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20886,6 +20886,29 @@ (define-public python-lark-parser
some degree most natural languages too.")
(license license:expat)))
+(define-public python-find-libpython
+ (package
+ (name "python-find-libpython")
+ (version "0.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ktbarrett/find_libpython")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1z1r9nix2z75sv41j97pnl6jgj2lk6k8la23vavxjpprsc9ld1dd"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest))
+ (home-page "https://github.com/ktbarrett/find_libpython")
+ (synopsis "Find the path to the @code{libpython} dynamic library")
+ (description "@code{find_libpython} helps find the path to the
+@code{libpython} dynamic library for the current Python environment. It is
+both a script and a Python package.")
+ (license license:expat)))
+
(define-public python-libcst
(package
(name "python-libcst")

base-commit: 0ff72d105ca03a82de6bb5193266fd05fce72daf
--
2.41.0
C
C
Cayetano Santos wrote on 28 Feb 07:11 -0800
[PATCH v1] gnu: Add python-find-libpython.
(address . 70067@debbugs.gnu.org)(name . Cayetano Santos)(address . csantosb@inventati.org)
310da0d267e90bc558e6b4aa983508a310448395.1740755499.git.csantosb@inventati.org
* gnu/packages/python-xyz.scm (python-find-libpython): New variable.

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

Toggle diff (48 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c00a54066b..2d54cff9c5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -162,6 +162,7 @@
;;; Copyright © 2025 Jordan Moore <lockbox@struct.foo>
;;; Copyright © 2025 Dariqq <dariqq@posteo.net>
;;; Copyright © 2025 Nguyễn Gia Phong <mcsinyx@disroot.org>
+;;; Copyright © 2025, Cayetano Santos <csantosb@inventati.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -23290,6 +23291,31 @@ (define-public python-lark-parser
some degree most natural languages too.")
(license license:expat)))
+(define-public python-find-libpython
+ (package
+ (name "python-find-libpython")
+ (version "0.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ktbarrett/find_libpython")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1z1r9nix2z75sv41j97pnl6jgj2lk6k8la23vavxjpprsc9ld1dd"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-setuptools python-wheel
+ ;; tests
+ python-pytest))
+ (home-page "https://github.com/ktbarrett/find_libpython")
+ (synopsis "Find the path to the @code{libpython} dynamic library")
+ (description
+ "@code{find_libpython} helps find the path to the
+@code{libpython} dynamic library for the current Python environment. It is
+both a script and a Python package.")
+ (license license:expat)))
+
(define-public python-libcst
(package
(name "python-libcst")

base-commit: 73ceab22af8c0c35b4f89d75740c6b745f8d9ba6
--
2.48.1
C
C
Christopher Baines wrote on 1 Mar 15:00 -0800
(name . Cayetano Santos via Guix-patches via)(address . guix-patches@gnu.org)
87plj0xsos.fsf@cbaines.net
Cayetano Santos via Guix-patches via <guix-patches@gnu.org> writes:

Toggle quote (7 lines)
> * gnu/packages/python-xyz.scm (python-find-libpython): New variable.
>
> Change-Id: I167f640549a0baca5b378ddb84d33b12d71e2d9a
> ---
> gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)

Thanks, I've pushed this to master as
de3954341b36325a6f908bd028d6cc379e9f26d2.

Chris
-----BEGIN PGP SIGNATURE-----

iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmfDkYNfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9XdXOQ//enkL+EQ3QgSrts2ouEkmH/G5LyGuzEol
vQ7zxKyahViEzIpyqghXOcimJMNfN2FE6MamYQQaRyugNngMapUVLPHeYIfsb7xZ
4sLx1wnsaK7cfKffloN1Dp5Kip+G0ZTgwuSugcRYlVynZVMckM0tP+/XCWeAeCTQ
jEYkuppqvvvwnEhsRFXAX9H74GFurOb2YQPtAUeN3HpHeAW02f6fTfirtgg3ANU7
oIOM7EbXriSqq6gbGnldn0F0CeSHUvKU9wANPRixB/J6Jei2JKahtuJM0pyNxTHQ
0S73cKEo1T4l838CmYBUAmloUyhS+M47DL6CAuohMmeM1T9HrkzLLZ4HhorZQ+x4
FFn0pH0EZ8E/Ghi/4YpJzOmfD5gz11tyKFRjV0vhEV+AWLs/myH1EkECfumcIdqC
7aSOQzqEXjjJhWdIpVTTmhlUegXiUvAZ9KgovjjOm5SZuq8Sn1fYZV2IgSaPCm2Q
DMbTIw5th47sNTi7rbi7IkRkqagnY6DpZgnpaGNH6C7q/WbTF6bMW7xMxOYJmAeW
LdhrUjqGnwR47rvuKd7++7hzaSbCy85BLtVa7Z0YkWfBzxXhXjao2WnjCK15k67o
jbwXuZzjeQIHcgveapuYk2MjhKI13XaAItVlHqGuFOczn/vtwOBHNtBtkcqVVmGJ
wo5XUSfdHl8=
=Zba/
-----END PGP SIGNATURE-----

?
Your comment

This issue is archived.

To comment on this conversation send an email to 70067@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 70067
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch