[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/96: gnu: python-tomli: Update to 2.0.1.
From: |
guix-commits |
Subject: |
04/96: gnu: python-tomli: Update to 2.0.1. |
Date: |
Wed, 19 Apr 2023 21:41:04 -0400 (EDT) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 87d9374807d49e8cc3ac35ac1365078e433180c9
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Apr 15 22:06:44 2023 -0400
gnu: python-tomli: Update to 2.0.1.
* gnu/packages/python-build.scm (python-tomli): Update to 2.0.1.
[build-system]: Use pyproject-build-system.
[arguments]: Remove build and install phase overrides. Add
add-self-to-path.
[native-inputs]: Remove python-pypa-build and input labels.
---
gnu/packages/python-build.scm | 25 +++++++------------------
1 file changed, 7 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index c5438b5e78..61e035d384 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -179,34 +179,23 @@ Python file, so it can be easily copied into your
project.")
(define-public python-tomli
(package
(name "python-tomli")
- (version "2.0.0")
+ (version "2.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tomli" version))
(sha256
- (base32 "1q8lrh9ypa6zpgbc5f7z23p7phzblp4vpxdrpfr1wajhb17w74n2"))))
- (build-system python-build-system)
+ (base32 "0kwazq3i18rphcr8gak4fgzdcj5w5bbn4k4j2l6ma32gj496qlny"))))
+ (build-system pyproject-build-system)
(arguments
`(#:tests? #f ;disabled to avoid extra dependencies
#:phases
(modify-phases %standard-phases
- (replace 'build
+ (add-before 'build 'add-self-to-path
(lambda _
- (setenv "PYTHONPATH" (string-append (getcwd) ":"
- (getenv "GUIX_PYTHONPATH")))
- (invoke "python" "-m" "build" "--wheel" "--no-isolation"
- "--skip-dependency-check")))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (whl (car (find-files "dist" "\\.whl$"))))
- (invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--no-deps" "--prefix" out whl)))))))
- (native-inputs
- `(("python-flit-core-bootstrap" ,python-flit-core-bootstrap)
- ("python-pypa-build" ,python-pypa-build)
- ("python-six", python-six-bootstrap)))
+ ;; The build system of tomli requires... tomli.
+ (setenv "PYTHONPATH" "src"))))))
+ (native-inputs (list python-flit-core-bootstrap python-six-bootstrap))
(home-page "https://github.com/hukkin/tomli")
(synopsis "Small and fast TOML parser")
(description "Tomli is a minimal TOML parser that is fully compatible with
- branch core-updates updated (1344c3388a -> c0ac055918), guix-commits, 2023/04/19
- 06/96: gnu: python-pip: Update to 23.1., guix-commits, 2023/04/19
- 04/96: gnu: python-tomli: Update to 2.0.1.,
guix-commits <=
- 09/96: gnu: python-pep517-bootstrap: Add TODO comment., guix-commits, 2023/04/19
- 11/96: gnu: python-flit-core-bootstrap: Update to 3.8.0., guix-commits, 2023/04/19
- 13/96: gnu: Remove python-typing-extensions-next., guix-commits, 2023/04/19
- 10/96: gnu: python-poetry-core: Update to 1.5.2., guix-commits, 2023/04/19
- 15/96: gnu: python-setuptools-scm: Update to 7.1.0., guix-commits, 2023/04/19
- 03/96: gnu: python-pathspec: Update to 0.11.1., guix-commits, 2023/04/19
- 07/96: gnu: python-setuptools: Update to 67.6.1., guix-commits, 2023/04/19
- 20/96: gnu: python-execnet: Update to 1.9.0-1.d6aa1a5., guix-commits, 2023/04/19
- 08/96: gnu: python-wheel: Update to 0.40.0., guix-commits, 2023/04/19
- 12/96: gnu: python-typing-extensions: Use pyproject-build-system., guix-commits, 2023/04/19