guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

18/20: gnu: Add python-pyproject-metadata.


From: guix-commits
Subject: 18/20: gnu: Add python-pyproject-metadata.
Date: Sun, 11 Sep 2022 13:46:57 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 87567bbc9e0cee7a7503e8db01a3833e79541d96
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sun Sep 11 18:00:37 2022 +0200

    gnu: Add python-pyproject-metadata.
    
    * gnu/packages/python-xyz.scm (python-pyproject-metadata): New variable.
    (python-pep621): Inherit from it.
---
 gnu/packages/python-xyz.scm | 30 +++++++++++++++++++++++-------
 1 file changed, 23 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9d7ebf32ef..a87a250b60 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10483,21 +10483,20 @@ plugin for flake8 to check PEP-8 naming conventions.")
                           (invoke "pytest") #t))))))
     (native-inputs (list python-mock python-pytest python-testpath))))
 
-
-(define-public python-pep621
+(define-public python-pyproject-metadata
   (package
-    (name "python-pep621")
-    (version "0.4.0")
+    (name "python-pyproject-metadata")
+    (version "0.6.1")
     (source
      (origin
        (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/FFY00/python-pep621";)
+             (url "https://github.com/FFY00/python-pyproject-metadata";)
              (commit version)))
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "0nzig7bmzf0xx5svxlf065mrzihr0ci4p1yaxka9flqjba98flpr"))))
+         "00zahgw9zjfqwf0218bj5k732aibnn68cq1p8f0wmbirb7fy5k31"))))
     (build-system python-build-system)
     (arguments
      (list
@@ -10525,7 +10524,7 @@ plugin for flake8 to check PEP-8 naming conventions.")
                         "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";)
+    (home-page "https://github.com/FFY00/python-pyproject-metadata";)
     (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
@@ -10534,6 +10533,23 @@ validate this input and generate a PEP 643-compliant 
metadata
 file (e.g. @file{PKG-INFO}).")
     (license license:expat)))
 
+;; pep621 was renamed to pyproject-metadata.
+(define-public python-pep621
+  (package
+    (inherit python-pyproject-metadata)
+    (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"))))))
+
 (define-public python-pyflakes
   (package
     (name "python-pyflakes")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]