[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/15: gnu: python-charset-normalizer: Trim closure size.
From: |
guix-commits |
Subject: |
10/15: gnu: python-charset-normalizer: Trim closure size. |
Date: |
Sun, 13 Feb 2022 09:18:13 -0500 (EST) |
mbakke pushed a commit to branch staging
in repository guix.
commit 662d1229677b70428d4630c3b417ee2fce97ed67
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Feb 4 10:22:17 2022 +0100
gnu: python-charset-normalizer: Trim closure size.
* gnu/packages/python-xyz.scm (python-charset-normalizer)[arguments]:
Override
wrap phase.
---
gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 88edd7de3e..1b23f46f4c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13124,6 +13124,26 @@ automatically detect a wide range of file encodings.")
(sha256
(base32 "071pi2kd222rjjrjdllffqv3iz4bfaj93a9bfs65907fd6fqlfcq"))))
(build-system python-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ ;; This package provides a 'normalizer' executable that only
+ ;; depends on Python, so customize the wrap phase to avoid
+ ;; adding pytest and friends in order to save size.
+ ;; (See also <https://bugs.gnu.org/25235>.)
+ (replace 'wrap
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((sitedir (site-packages inputs outputs))
+ (python (dirname (dirname
+ (search-input-file
+ inputs "bin/python"))))
+ (python-sitedir
+ (string-append python "/lib/python"
+ (python-version python)
+ "/site-packages")))
+ (wrap-program (string-append #$output "/bin/normalizer")
+ `("GUIX_PYTHONPATH" ":" suffix
+ ,(list sitedir python-sitedir)))))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/ousret/charset_normalizer")
- branch staging updated (76b6bbdf23 -> 6f22596b1c), guix-commits, 2022/02/13
- 04/15: gnu: python-requests: Update to 2.27.1., guix-commits, 2022/02/13
- 02/15: gnu: python-idna: Update to 3.3., guix-commits, 2022/02/13
- 07/15: gnu: python-charset-normalizer: Update to 2.0.11., guix-commits, 2022/02/13
- 03/15: gnu: python-certifi: Update to 2021.10.8., guix-commits, 2022/02/13
- 10/15: gnu: python-charset-normalizer: Trim closure size.,
guix-commits <=
- 11/15: gnu: python-chardet: Update to 4.0.0., guix-commits, 2022/02/13
- 12/15: gnu: python-iso8601: Update to 1.0.2., guix-commits, 2022/02/13
- 15/15: gnu: python-pyopenssl: Update to 22.0.0., guix-commits, 2022/02/13
- 08/15: gnu: python-cryptography: Remove 3.3.1., guix-commits, 2022/02/13
- 09/15: gnu: python-chardet: Trim closure size., guix-commits, 2022/02/13
- 01/15: gnu: python-flaky: Update to 3.7.0., guix-commits, 2022/02/13
- 14/15: gnu: librsvg: Remove unused inputs., guix-commits, 2022/02/13
- 06/15: gnu: python-requests: Remove unnecessary input., guix-commits, 2022/02/13
- 05/15: gnu: python-urllib3: Update to 1.26.8., guix-commits, 2022/02/13
- 13/15: gnu: python-pycparser: Update to 2.21., guix-commits, 2022/02/13