[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
121/232: gnu: Add python-pep621.
From: |
guix-commits |
Subject: |
121/232: gnu: Add python-pep621. |
Date: |
Sun, 24 Apr 2022 23:58:58 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 28f7dcf60104e4d035a511166aaccad5fe2027ba
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 f37ac4449d..82ad13eed0 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10771,7 +10771,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
- 94/232: gnu: pylint: Run tests in parallel., (continued)
- 94/232: gnu: pylint: Run tests in parallel., guix-commits, 2022/04/24
- 97/232: gnu: Add python-debugpy., guix-commits, 2022/04/24
- 100/232: gnu: python-pytest-xdist-next: Update to 2.5.0., guix-commits, 2022/04/24
- 104/232: gnu: python-jupyter-client: Update to 7.2.2., guix-commits, 2022/04/24
- 106/232: gnu: Add python-pytest-tornado., guix-commits, 2022/04/24
- 107/232: gnu: python-ipyparallel: Update to 8.2.1., guix-commits, 2022/04/24
- 111/232: gnu: Add texlive-unicode-math., guix-commits, 2022/04/24
- 112/232: gnu: Add texlive-lm-math., guix-commits, 2022/04/24
- 117/232: gnu: python-notebook: Update to 6.4.10., guix-commits, 2022/04/24
- 120/232: gnu: python-sphinx: Propagate TexLive dependencies., guix-commits, 2022/04/24
- 121/232: gnu: Add python-pep621.,
guix-commits <=
- 126/232: gnu: Add texlive-cbfonts-fd., guix-commits, 2022/04/24
- 128/232: download: Add a mirror for CTAN., guix-commits, 2022/04/24
- 130/232: gnu: Add texlive-cm-lgc., guix-commits, 2022/04/24
- 131/232: gnu: Add texlive-xindy., guix-commits, 2022/04/24
- 133/232: gnu: python-websockets: Update to 10.3 and enable tests., guix-commits, 2022/04/24
- 78/232: gnu: Add python-afdko., guix-commits, 2022/04/24
- 88/232: gnu: Add texlive-bidi., guix-commits, 2022/04/24
- 92/232: gnu: Add python-untangle., guix-commits, 2022/04/24
- 93/232: gnu: python-black: Update to 22.3.0., guix-commits, 2022/04/24
- 105/232: gnu: python-ipykernel: Update to 6.13.0., guix-commits, 2022/04/24