[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/15: gnu: python-hatchling: Move to (gnu packages build).
From: |
guix-commits |
Subject: |
06/15: gnu: python-hatchling: Move to (gnu packages build). |
Date: |
Sun, 2 Apr 2023 06:49:11 -0400 (EDT) |
lilyp pushed a commit to branch clinguin
in repository guix.
commit 53495cc217baea22d9d9fe55983705410e7c95f9
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Sat Mar 18 08:44:38 2023 +0100
gnu: python-hatchling: Move to (gnu packages build).
* gnu/packages/python-xyz.scm (python-hatchling): Move from here…
* gnu/packages/python-build.scm (python-hatchling): … to here.
[propagated-inputs]: Remove python-importlib-metadata.
Replace python-packaging with python-packaging-bootstrap.
[arguments]: Clarify #:tests?.
Rename ‘do-not-depend-on-hatchling’ to ‘bootstrap-without-hatchling’.
---
gnu/packages/python-build.scm | 48 +++++++++++++++++++++++++++++++++++++++++++
gnu/packages/python-xyz.scm | 45 ----------------------------------------
2 files changed, 48 insertions(+), 45 deletions(-)
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index 1281824a97..eb864d8ad6 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -28,6 +28,7 @@
#:use-module (gnu packages)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system python)
+ #:use-module (guix build-system pyproject)
#:use-module (guix gexp)
#:use-module (guix download)
#:use-module (guix git-download)
@@ -622,3 +623,50 @@ Pytest but stripped of Pytest specific details.")
(sha256
(base32
"0n8iadlas2z1b4h0fc73b043c7iwfvx9rgvqm1azjmffmhxkf922"))))))
+
+(define-public python-hatchling
+ (package
+ (name "python-hatchling")
+ (version "1.13.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "hatchling" version))
+ (sha256
+ (base32
+ "1isk1kqra0sm2sj2yp39sgk62mx0bp1jnbkwdcl3a1vjrji7blpq"))))
+ (arguments
+ (list
+ ;; Tests don't appear to be integrated into build.
+ ;; Also, we can't rely on python-pytest anyway, as that's in
+ ;; (gnu packages python-check)...
+ #:tests? #false
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'bootstrap-without-hatchling
+ (lambda _
+ ;; We don't use hatchling.
+ (delete-file "pyproject.toml")
+ (call-with-output-file "pyproject.toml"
+ (lambda (port)
+ (format port "\
+[build-system]
+build-backend = 'setuptools.build_meta'
+requires = ['setuptools']
+")))
+ (call-with-output-file "setup.cfg"
+ (lambda (port)
+ (format port "\
+[metadata]
+name = hatchling
+version = '~a' " #$version))))))))
+ (propagated-inputs
+ (list python-editables
+ python-pathspec
+ python-packaging-bootstrap
+ python-pluggy
+ python-tomli))
+ (build-system pyproject-build-system)
+ (home-page "https://hatch.pypa.io/")
+ (synopsis "Extensible Python build backend")
+ (description "Hatchling is an extensible Python build backend.")
+ (license license:expat)))
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b210ce3dac..c49f889b45 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1755,51 +1755,6 @@ compositions like @code{XOR} and @code{NAND} are
emulated on top of them.
Expressions are constructed from parsed strings or directly in Python.")
(license license:bsd-2)))
-(define-public python-hatchling
- (package
- (name "python-hatchling")
- (version "1.13.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "hatchling" version))
- (sha256
- (base32
- "1isk1kqra0sm2sj2yp39sgk62mx0bp1jnbkwdcl3a1vjrji7blpq"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:tests? #false ;there are none
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'do-not-depend-on-hatchling
- (lambda _
- ;; We don't use hatchling.
- (delete-file "pyproject.toml")
- (call-with-output-file "pyproject.toml"
- (lambda (port)
- (format port "\
-[build-system]
-build-backend = 'setuptools.build_meta'
-requires = ['setuptools']
-")))
- (call-with-output-file "setup.cfg"
- (lambda (port)
- (format port "\
-[metadata]
-name = hatchling
-version = '~a' " #$version))))))))
- (propagated-inputs
- (list python-editables
- python-importlib-metadata
- python-packaging
- python-pathspec
- python-pluggy
- python-tomli))
- (home-page "https://hatch.pypa.io/")
- (synopsis "Extensible Python build backend")
- (description "Hatchling is an extensible Python build backend.")
- (license license:expat)))
-
(define-public python-hdf4
(package
(name "python-hdf4")
- branch clinguin created (now b346e01f61), guix-commits, 2023/04/02
- 03/15: gnu: python-pathspec: Move to (gnu packages python-build)., guix-commits, 2023/04/02
- 01/15: gnu: python-pathspec: Update to 0.11.0., guix-commits, 2023/04/02
- 07/15: gnu: python-starlette: Update to 0.25.0., guix-commits, 2023/04/02
- 09/15: gnu: python-pymysql: Update to 1.0.2., guix-commits, 2023/04/02
- 08/15: gnu: python-sqlalchemy: Update to 1.4.42., guix-commits, 2023/04/02
- 12/15: gnu: python-databases: Update to 0.7.0., guix-commits, 2023/04/02
- 06/15: gnu: python-hatchling: Move to (gnu packages build).,
guix-commits <=
- 15/15: gnu: Add python-clinguin., guix-commits, 2023/04/02
- 14/15: gnu: Add python-fastapi., guix-commits, 2023/04/02
- 11/15: gnu: python-aiosqlite: Update to 0.18.0., guix-commits, 2023/04/02
- 02/15: gnu: python-pathspec: Revise description., guix-commits, 2023/04/02
- 04/15: gnu: python-pluggy: Move to (gnu packages python-build)., guix-commits, 2023/04/02
- 05/15: gnu: python-hatchling: Use upstream homepage., guix-commits, 2023/04/02
- 10/15: gnu: python-aiomysql: Update to 0.1.1., guix-commits, 2023/04/02
- 13/15: gnu: python-databases: Revise description., guix-commits, 2023/04/02