[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
60/142: gnu: python-flit-core: Propagate python-tomli instead of python-
From: |
guix-commits |
Subject: |
60/142: gnu: python-flit-core: Propagate python-tomli instead of python-toml. |
Date: |
Mon, 10 Jan 2022 13:07:22 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit 3b3fb28086aeb12188efc1be1bd2ced670acdbe7
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Dec 20 12:30:52 2021 -0500
gnu: python-flit-core: Propagate python-tomli instead of python-toml.
Flit Core apparently requires tomli at runtime rather than toml. This means
we must build a toml-less python-flit-core first, for bootstrapping
purposes.
* gnu/packages/python-build.scm (python-flit-core-bootstrap): New variable.
(python-flit-core): Inherit from the above, replacing the propagated
python-toml by python-tomli.
(python-tomli): Adjust accordingly.
---
gnu/packages/python-build.scm | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index 29a2bdc2f7..a972a752be 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -163,7 +163,7 @@ Python file, so it can be easily copied into your project.")
(invoke "pip" "--no-cache-dir" "--no-input"
"install" "--no-deps" "--prefix" out whl)))))))
(native-inputs
- `(("python-flit-core" ,python-flit-core)
+ `(("python-flit-core-bootstrap" ,python-flit-core-bootstrap)
("python-pypa-build" ,python-pypa-build)
("python-six", python-six-bootstrap)))
(home-page "https://github.com/hukkin/tomli")
@@ -347,9 +347,10 @@ a light weight, fully compliant, self-contained package
allowing PEP 517
compatible build front-ends to build Poetry managed projects.")
(license license:expat)))
-(define-public python-flit-core
+;;; This package exists to bootstrap python-tomli.
+(define-public python-flit-core-bootstrap
(package
- (name "python-flit-core")
+ (name "python-flit-core-bootstrap")
(version "3.5.1")
(source
(origin
@@ -387,3 +388,10 @@ compatible build front-ends to build Poetry managed
projects.")
backend for packages using Flit. The only public interface is the API
specified by PEP 517, @code{flit_core.buildapi}.")
(license license:bsd-3)))
+
+(define-public python-flit-core
+ (package/inherit python-flit-core-bootstrap
+ (name "python-flit-core")
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs python-flit-core-bootstrap)
+ (replace "python-toml" python-tomli)))))
- 85/142: gnu: samtools: Update to 1.14., (continued)
- 85/142: gnu: samtools: Update to 1.14., guix-commits, 2022/01/10
- 98/142: gnu: go-golang-org-x-crypto: Remove obsolete phase., guix-commits, 2022/01/10
- 105/142: gnu: lmms: Remove obsolete phase., guix-commits, 2022/01/10
- 110/142: gnu: pre-commit: Remove obsolete phase., guix-commits, 2022/01/10
- 129/142: build/python: Improve error output in sanity check., guix-commits, 2022/01/10
- 120/142: gnu: python-xlrd: Update to 2.0.1., guix-commits, 2022/01/10
- 124/142: gnu: file-roller: Add python to native inputs., guix-commits, 2022/01/10
- 135/142: gnu: rust-v-frame-0.2: Update to 0.2.5., guix-commits, 2022/01/10
- 134/142: gnu: Add rust-rustc-version-0.4., guix-commits, 2022/01/10
- 48/142: gnu: atkmm-2.28: Do not propagate two variants of glibmm., guix-commits, 2022/01/10
- 60/142: gnu: python-flit-core: Propagate python-tomli instead of python-toml.,
guix-commits <=
- 65/142: gnu: python-testpath: Update to 0.5.0 and enable tests., guix-commits, 2022/01/10
- 73/142: gnu: Add python-zopfli., guix-commits, 2022/01/10
- 47/142: gnu: atkmm: Add python to native inputs., guix-commits, 2022/01/10
- 50/142: gnu: gusb: Add python to native inputs., guix-commits, 2022/01/10
- 51/142: gnu: gtk: Update to 4.4.1., guix-commits, 2022/01/10
- 53/142: gnu: dconf: Add python to native inputs., guix-commits, 2022/01/10
- 54/142: gnu: tracker: Add python to native inputs., guix-commits, 2022/01/10
- 66/142: gnu: python-flit: Update to 3.5.1, enable tests and apply guix style., guix-commits, 2022/01/10
- 70/142: gnu: Add python-pyftpdlib., guix-commits, 2022/01/10
- 72/142: gnu: Add zopfli., guix-commits, 2022/01/10