[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/21: gnu: python-yarl: Update to 1.6.3.
From: |
guix-commits |
Subject: |
07/21: gnu: python-yarl: Update to 1.6.3. |
Date: |
Mon, 9 Aug 2021 08:29:05 -0400 (EDT) |
efraim pushed a commit to branch core-updates-frozen
in repository guix.
commit 60c9828933252faf4d32b9fe11f34558f58f5603
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Aug 9 12:54:30 2021 +0300
gnu: python-yarl: Update to 1.6.3.
* gnu/packages/python-web.scm (python-yarl): Update to 1.6.3.
[source]: Add snippet to remove cythonized code.
[arguments]: Skip tests. Add custom 'check phase. Add phase to cythonize
code.
[native-inputs]: Add python-cython.
---
gnu/packages/python-web.scm | 26 +++++++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 90db612..fdc3aa5 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -64,6 +64,7 @@
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system python)
+ #:use-module (guix gexp)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages base)
@@ -4251,17 +4252,36 @@ name resolutions asynchronously.")
(define-public python-yarl
(package
(name "python-yarl")
- (version "1.1.1")
+ (version "1.6.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "yarl" version))
(sha256
(base32
- "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
+ "045z4ssg8g5h0qhz8hnx74hswgkndaldqq1xi5l1n5s0j996d44a"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ (delete-file "yarl/_quoting_c.c")))))
(build-system python-build-system)
+ (arguments
+ (list #:tests? #f ; test suite can't find yarl._quoting_c
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'cythonize-code
+ (lambda _
+ (invoke "cython" "yarl/_quoting_c.pyx")))
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (substitute* "setup.cfg"
+ (("--cov=yarl") ""))
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "-m" "pytest")))))))
(native-inputs
- `(("python-pytest" ,python-pytest)
+ `(("python-cython" ,python-cython)
+ ("python-pytest" ,python-pytest)
("python-pytest-runner" ,python-pytest-runner)))
(propagated-inputs
`(("python-idna" ,python-idna)
- branch core-updates-frozen updated (d418784 -> 36cb285), guix-commits, 2021/08/09
- 02/21: gnu: python-ruamel.yaml: Update to 0.16.13., guix-commits, 2021/08/09
- 03/21: gnu: python-pyicu: Update to 2.7.4., guix-commits, 2021/08/09
- 04/21: gnu: python-soupsieve: Fix building., guix-commits, 2021/08/09
- 01/21: gnu: Add python-ruamel.yaml.clib., guix-commits, 2021/08/09
- 08/21: gnu: python-flask: Honor #:tests in check phase., guix-commits, 2021/08/09
- 05/21: gnu: python-pytest-xprocess: Update to 0.18.1., guix-commits, 2021/08/09
- 06/21: gnu: python-werkzeug: Update to 2.0.1., guix-commits, 2021/08/09
- 07/21: gnu: python-yarl: Update to 1.6.3.,
guix-commits <=
- 09/21: gnu: python-markupsafe: Honor #:tests in check phase., guix-commits, 2021/08/09
- 10/21: gnu: python-flask: Update to 2.0.1., guix-commits, 2021/08/09
- 12/21: gnu: python-markupsafe: Update to 2.0.1., guix-commits, 2021/08/09
- 14/21: gnu: python-pytest-isort: Honor #:tests in check phase., guix-commits, 2021/08/09
- 15/21: gnu: python-pytest-isort: Update to 2.0.0., guix-commits, 2021/08/09
- 20/21: gnu: python-astroid: Update to 2.6.6., guix-commits, 2021/08/09
- 11/21: gnu: python-itsdangerous: Update to 2.0.1., guix-commits, 2021/08/09
- 13/21: gnu: python-jinja2: Update to 3.0.1., guix-commits, 2021/08/09
- 16/21: gnu: ruby-minitest: Update to 5.14.4., guix-commits, 2021/08/09
- 17/21: gnu: ruby-minitest-hooks: Update to 1.5.0., guix-commits, 2021/08/09