gnu: python-hatchling: Update to 1.14.0.

* gnu/packages/python-build.scm (python-hatchling): Update to 1.14.0.
[arguments]: Replace do-not-depend-on-hatchling phase with add-src-to-path.
[description]: Expound.
This commit is contained in:
Maxim Cournoyer 2023-04-15 23:55:38 -04:00
parent 59deb3878a
commit 545b9548d5
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -641,44 +641,37 @@ reflected in the package visible to Python, without needing a reinstall.")
(define-public python-hatchling (define-public python-hatchling
(package (package
(name "python-hatchling") (name "python-hatchling")
(version "1.13.0") (version "1.14.0")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "hatchling" version)) (uri (pypi-uri "hatchling" version))
(sha256 (sha256
(base32 (base32
"1isk1kqra0sm2sj2yp39sgk62mx0bp1jnbkwdcl3a1vjrji7blpq")))) "1nn5cyc9fgrbawz38drfkl2s588k2gn3yqdm2cldbx9zy0fsjbj6"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list #:tests? #f ;to keep dependencies to a minimum
#:tests? #false ;there are none #:phases #~(modify-phases %standard-phases
#:phases (add-before 'build 'add-src-to-path
#~(modify-phases %standard-phases ;; Hatchling uses itself to build itself.
(add-after 'unpack 'do-not-depend-on-hatchling (lambda _
(lambda _ (setenv "PYTHONPATH" "src"))))))
;; We don't use hatchling. (propagated-inputs (list python-editables
(delete-file "pyproject.toml") python-packaging-bootstrap
(call-with-output-file "pyproject.toml" python-pathspec
(lambda (port) python-pluggy
(format port "\ python-tomli
[build-system] python-trove-classifiers))
build-backend = 'setuptools.build_meta' (home-page "https://hatch.pypa.io/latest/")
requires = ['setuptools'] (synopsis "Modern, extensible Python build backend")
"))) (description "Hatch is a modern, extensible Python project manager. It
(call-with-output-file "setup.cfg" has features such as:
(lambda (port) @itemize
(format port "\ @item Standardized build system with reproducible builds by default
[metadata] @item Robust environment management with support for custom scripts
name = hatchling @item Easy publishing to PyPI or other indexes
version = '~a' " #$version)))))))) @item Version management
(propagated-inputs @item Configurable project generation with sane defaults
(list python-editables @item Responsive CLI, ~2-3x faster than equivalent tools.
python-importlib-metadata @end itemize")
python-packaging
python-pathspec
python-pluggy
python-tomli))
(home-page "https://pypi.org/project/hatchling/")
(synopsis "Extensible Python build backend")
(description "Hatchling is an extensible Python build backend.")
(license license:expat))) (license license:expat)))