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

From: Cayetano Santos <[email-masked]>
Date: Fri, 28 Feb 2025 16:11:40 +0100

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

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

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 <[email-masked]>
 ;;; Copyright © 2025 Dariqq <[email-masked]>
 ;;; Copyright © 2025 Nguyễn Gia Phong <[email-masked]>
+;;; Copyright © 2025, Cayetano Santos <[email-masked]>
 ;;;
 ;;; 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