Subject: [bug#67798] [PATCH] gnu: Add python-find_libpython.

From: Cayetano Santos <[email-masked]>
Date: Tue, 12 Dec 2023 17:34:41 +0100

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

Signed-off-by: Cayetano Santos <[email-masked]>
---
 gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 86f8d81689..2eecb7c55b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19672,6 +19672,28 @@ (define-public python-libcst-minimal
      (arguments '(#:tests? #f))
      (native-inputs '()))))
 
+(define-public python-find_libpython
+  (package
+    (name "python-find_libpython")
+    (version "0.3.1")
+    (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
+         "1d7y9srf5j8g34azf0j1jnnrn5al55cnzb4kkx2l1q8hys0l040c"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/ktbarrett/find_libpython")
+    (synopsis
+     "Locate libpython associated with this Python executable")
+    (description
+     "The library is designed to find the path to the libpython dynamic library for the current Python environment.")
+    (license license:expat)))
+
 (define-public python-typing-inspect
   (package
     (name "python-typing-inspect")

base-commit: 17b407ccb673020bfd923e0b5814574f9567383d
-- 
2.41.0