guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit a80fa5dcd5db14e9abad1ded14c55802e34c435f
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Mon Jun 1 10:22:38 2026 +0100
gnu: python-pkgconfig: Update to 1.6.0.
* gnu/packages/python-xyz.scm (python-pkgconfig): Update to 1.6.0.
[source]: Switch to git-fetch.
[arguments] <tests?>: Enable them.
[phases]{patch}: Replace it with {set-pkg-config-path} phase.
{fix-test-data, set-pkg-config-path}: New phase, utilized project's
PKG_CONFIG environment variable and hard-code path to the pkg-config.
[native-inputs]: Add python-pytest.
Change-Id: I4659cc66d0958432ed50c7407a6a2798f8e03cf7
---
gnu/packages/python-xyz.scm | 39 +++++++++++++++++++++++----------------
1 file changed, 23 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1c4d613203..3117e29bdd 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22123,27 +22123,34 @@ secure handling files and support encryption.")
(define-public python-pkgconfig
(package
(name "python-pkgconfig")
- (version "1.5.5")
+ (version "1.6.0")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "pkgconfig" version))
- (sha256
- (base32
- "16dqm2g7b2c6s09vf6wv62s629s63xf51n92v0hbax8zy4z1dd6y"))))
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/matze/pkgconfig")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0xlfghjbx04gls3ad1ncggpi4xvjxcirrm3bamv5gp9wv3z5ln8s"))))
(build-system pyproject-build-system)
(arguments
(list
- #:tests? #false ;there are none
#:phases
- '(modify-phases %standard-phases
- (add-before 'build 'patch
- ;; Hard-code the path to pkg-config.
- (lambda _
- (substitute* "pkgconfig/pkgconfig.py"
- (("'pkg-config'")
- (string-append "'" (which "pkg-config") "'"))))))))
- (native-inputs (list python-poetry-core))
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-test-data
+ (lambda _
+ (substitute* "tests/data/fake-openssl.pc"
+ (("Requires: libssl libcrypto") ""))))
+ (add-before 'build 'set-pkg-config-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "PKG_CONFIG"
+ (search-input-file inputs "/bin/pkg-config"))
+ (substitute* "src/pkgconfig/pkgconfig.py"
+ (("'pkg-config'")
+ (format #f "~s"
+ (search-input-file inputs "/bin/pkg-config")))))))))
+ (native-inputs (list python-poetry-core python-pytest))
(inputs (list pkg-config))
(home-page "https://github.com/matze/pkgconfig")
(synopsis "Python interface for pkg-config")