[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: |
Thu, 12 May 2022 14:14:17 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 6c7834f46aade4771d53434b6fd04c93e8746b7c
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 ca293f5f54..23bf8add15 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10813,7 +10813,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
- 102/242: gnu: python-nest-asyncio: Update to 1.5.5., (continued)
- 102/242: gnu: python-nest-asyncio: Update to 1.5.5., guix-commits, 2022/05/12
- 88/242: gnu: Add texlive-bidi., guix-commits, 2022/05/12
- 108/242: gnu: python-anyio: Replace python-pytest-trio with python-trio., guix-commits, 2022/05/12
- 96/242: gnu: Add python-pydevd., guix-commits, 2022/05/12
- 110/242: gnu: python-bleach: Update to 5.0.0., guix-commits, 2022/05/12
- 95/242: gnu: python-trio: Update to 0.20.0., guix-commits, 2022/05/12
- 112/242: gnu: Add texlive-lm-math., guix-commits, 2022/05/12
- 86/242: gnu: Add font-amiri., guix-commits, 2022/05/12
- 113/242: gnu: python-nbconvert: Update to 6.5.0., guix-commits, 2022/05/12
- 115/242: gnu: python-nbval: Fix build., guix-commits, 2022/05/12
- 121/242: gnu: Add python-pep621.,
guix-commits <=
- 138/242: gnu: Add python-cbor2., guix-commits, 2022/05/12
- 154/242: gnu: python-hypothesis-6.23: Update to 6.43.3., guix-commits, 2022/05/12
- 164/242: gnu: python-voila: Update to 0.3.5., guix-commits, 2022/05/12
- 165/242: gnu: python-sparqlwrapper: Update to 2.0.0., guix-commits, 2022/05/12
- 187/242: gnu: Add python-pyyaml-env-tag., guix-commits, 2022/05/12
- 186/242: gnu: Add python-mergedeep., guix-commits, 2022/05/12
- 176/242: gnu: Add python-bson., guix-commits, 2022/05/12
- 198/242: gnu: Add python-pydyf., guix-commits, 2022/05/12
- 216/242: gnu: python-sphinx-copybutton: Update to 0.5.0., guix-commits, 2022/05/12
- 229/242: gnu: python-pudb: Update to 2022.1.1 and rename from pudb., guix-commits, 2022/05/12