[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62252] [PATCH 10/19] gnu: Add python-hatchling.
From: |
Liliana Marie Prikler |
Subject: |
[bug#62252] [PATCH 10/19] gnu: Add python-hatchling. |
Date: |
Sat, 18 Mar 2023 08:44:38 +0100 |
* gnu/packages/python-build.scm (python-hatchling)
(python-hatchling-ouroboros): New variables.
---
gnu/packages/python-build.scm | 46 +++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index 1281824a97..cb6301689a 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -28,6 +28,7 @@ (define-module (gnu packages python-build)
#: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,48 @@ (define-public python-pluggy-next
(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
+ ;; 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)...
+ (list #:tests? #f))
+ (propagated-inputs
+ (list python-editables
+ python-pathspec
+ python-pluggy-next
+ python-tomli))
+ (native-inputs (list python-hatchling-ouroboros))
+ (build-system pyproject-build-system)
+ (home-page "https://hatch.pypa.io/")
+ (synopsis "Modern, extensible Python build backend")
+ (description "Modern, extensible Python build backend")
+ (license license:expat)))
+
+(define python-hatchling-ouroboros
+ (package/inherit python-hatchling
+ (name "python-hatchling-ouroboros")
+ (version (package-version python-hatchling))
+ (arguments
+ (list
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ (delete 'build)
+ (replace 'install
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (copy-recursively "src/hatchling/"
+ (string-append (site-packages inputs outputs)
+ "/hatchling")))))))
+ (native-inputs '())))
--
2.39.2
- [bug#62252] [PATCH 02/19] gnu: python-imageio: Update to 2.26.0., (continued)
- [bug#62252] [PATCH 02/19] gnu: python-imageio: Update to 2.26.0., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 04/19] gnu: Add python-clingraph., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 05/19] gnu: python-pathspec: Update to 0.11.0., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 13/19] gnu: python-pymysql: Update to 1.0.2., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 06/19] gnu: python-pathspec: Revise description., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 08/19] gnu: python-pathspec: Move to (gnu packages python-build)., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 09/19] gnu: python-pluggy: Move to (gnu packages python-build)., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 15/19] gnu: python-aiosqlite: Update to 0.18.0., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 07/19] gnu: Add python-pluggy-next., Felix Gruber, 2023/03/18
- [bug#62252] [PATCH 03/19] gnu: Separate potassco packages into their own module., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 10/19] gnu: Add python-hatchling.,
Liliana Marie Prikler <=
- [bug#62252] [PATCH 16/19] gnu: python-databases: Update to 0.7.0., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 17/19] gnu: python-databases: Revise description., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 11/19] gnu: python-starlette: Update to 0.25.0., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 12/19] gnu: python-sqlalchemy: Update to 1.4.42., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 14/19] gnu: python-aiomysql: Update to 0.1.1., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 18/19] gnu: Add python-fastapi., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 19/19] gnu: Add python-clinguin., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH v2 01/19] gnu: Add python-imageio-ffmpeg., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 08/19] gnu: python-pathspec: Move to (gnu packages python-build)., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 10/19] gnu: Add python-hatchling., Liliana Marie Prikler, 2023/03/21