[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
121/242: gnu: Add python-pep621.
From: |
guix-commits |
Subject: |
121/242: gnu: Add python-pep621. |
Date: |
Wed, 11 May 2022 18:03:08 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit bbc1fda7490a66d1bf6c36905b81271bd18dcf1d
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Apr 14 23:25:31 2022 -0400
gnu: Add python-pep621.
* gnu/packages/python-xyz.scm (python-pep621): New variable.
---
gnu/packages/python-xyz.scm | 52 ++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 51 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9742dd92a5..c996ec8506 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10803,7 +10803,57 @@ plugin for flake8 to check PEP-8 naming conventions.")
(arguments
`(#:tests? #f
,@(package-arguments base)))
- (native-inputs `()))))
+ (native-inputs `()))))
+
+(define-public python-pep621
+ (package
+ (name "python-pep621")
+ (version "0.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/FFY00/python-pep621")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0nzig7bmzf0xx5svxlf065mrzihr0ci4p1yaxka9flqjba98flpr"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: PEP 517 manual build/install procedures copied from
+ ;; python-isort.
+ (replace 'build
+ (lambda _
+ ;; ZIP does not support timestamps before 1980.
+ (setenv "SOURCE_DATE_EPOCH" "315532800")
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv"
+ ;; Two parameterized test_load tests are currently
+ ;; failing (see:
+ ;; https://github.com/FFY00/python-pep621/issues/14).
+ "-k" "not test_load"))))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output whl)))))))
+ (propagated-inputs (list python-packaging))
+ (native-inputs (list python-pypa-build python-pytest python-tomli))
+ (home-page "https://github.com/FFY00/python-pep621")
+ (synopsis "Dataclass for PEP 621 metadata")
+ (description "This project does not implement the parsing of
+@file{pyproject.toml} containing PEP 621 metadata. Instead, given a Python
+data structure representing PEP 621 metadata (already parsed), it will
+validate this input and generate a PEP 643-compliant metadata
+file (e.g. @file{PKG-INFO}).")
+ (license license:expat)))
(define-public python-pyflakes
(package
- 99/242: gnu: Add python-pytest-forked-next., (continued)
- 99/242: gnu: Add python-pytest-forked-next., guix-commits, 2022/05/11
- 106/242: gnu: Add python-pytest-tornado., guix-commits, 2022/05/11
- 109/242: gnu: python-nbclient: Update to 0.6.0., guix-commits, 2022/05/11
- 110/242: gnu: python-bleach: Update to 5.0.0., guix-commits, 2022/05/11
- 111/242: gnu: Add texlive-unicode-math., guix-commits, 2022/05/11
- 113/242: gnu: python-nbconvert: Update to 6.5.0., guix-commits, 2022/05/11
- 116/242: gnu: python-send2trash: Update to 1.8.0 and update home page., guix-commits, 2022/05/11
- 117/242: gnu: python-notebook: Update to 6.4.10., guix-commits, 2022/05/11
- 118/242: gnu: Add python-nbdime., guix-commits, 2022/05/11
- 119/242: gnu: Add python-docrepr., guix-commits, 2022/05/11
- 121/242: gnu: Add python-pep621.,
guix-commits <=
- 122/242: gnu: Add python-sphinx-theme-builder., guix-commits, 2022/05/11
- 123/242: gnu: Add python-sphinx-sitemap., guix-commits, 2022/05/11
- 124/242: gnu: texlive-fontspec: Add missing propagated inputs., guix-commits, 2022/05/11
- 130/242: gnu: Add texlive-cm-lgc., guix-commits, 2022/05/11
- 131/242: gnu: Add texlive-xindy., guix-commits, 2022/05/11
- 135/242: gnu: Add python-rfc3339-validator., guix-commits, 2022/05/11
- 133/242: gnu: python-websockets: Update to 10.3 and enable tests., guix-commits, 2022/05/11
- 139/242: gnu: python-httpcore: Update to 0.14.7 and enable tests., guix-commits, 2022/05/11
- 153/242: gnu: Add python-jupyterlab-server., guix-commits, 2022/05/11
- 142/242: gnu: python-httpx: Update to 0.22.0., guix-commits, 2022/05/11