guix-commits
[Top][All Lists]
Advanced

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

01/05: gnu: Add python-pdm-backend.


From: guix-commits
Subject: 01/05: gnu: Add python-pdm-backend.
Date: Fri, 5 May 2023 03:27:00 -0400 (EDT)

lbraun pushed a commit to branch master
in repository guix.

commit d1e4803474de384b40064a86b690d276e0e0ba13
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri Apr 28 11:24:26 2023 +0200

    gnu: Add python-pdm-backend.
    
    * gnu/packages/python-build.scm (python-pdm-backend): New variable.
---
 gnu/packages/python-build.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index 70719c44d4..154c97e9e4 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -715,3 +715,31 @@ parts of files defined using cut-off points or regular 
expressions.")
     (description "This package is a plugin for Hatch that uses your preferred
 version control system (like Git) to determine project versions.")
     (license license:expat)))
+
+(define-public python-pdm-backend
+  (package
+    (name "python-pdm-backend")
+    (version "2.0.6")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pdm_backend" version))
+              (sha256
+               (base32
+                "06bq846yy33alxbljgcf4lx9g2mx4b2sv04i59rrn9rxapcg2651"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:tests? #f ; Depends on pytest, which we cannot import into this module.
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'set-pythonpath
+            (lambda _
+              (setenv "PYTHONPATH" (string-append (getcwd) "/src")))))))
+    (home-page "https://pdm-backend.fming.dev/";)
+    (synopsis
+     "PEP 517 build backend for PDM")
+    (description
+     "PDM-Backend is a build backend that supports the latest packaging
+standards, which includes PEP 517, PEP 621 and PEP 660.")
+    (license license:expat)))
+



reply via email to

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