guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: python-flit: Update to 3.8.0.


From: guix-commits
Subject: 02/02: gnu: python-flit: Update to 3.8.0.
Date: Wed, 7 Jun 2023 08:29:24 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit f57acde70b0b91920adf9348447a68845db57228
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Jun 7 14:27:39 2023 +0200

    gnu: python-flit: Update to 3.8.0.
    
    * gnu/packages/python-xyz.scm (python-flit): Update to 3.8.0.
    [build-system]: Use pyproject-build-system.
    [arguments]: Run tests, but disable those that need networking; remove 
custom
    'build phase; remove custom 'install phase; replace custom 'check phase with
    new 'pre-check phase.
---
 gnu/packages/python-xyz.scm | 25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 894c78296d..f2a794367f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26681,32 +26681,29 @@ the syntactic logic to configure and launch jobs in 
an execution environment.")
 (define-public python-flit
   (package
     (name "python-flit")
-    (version "3.5.1")
+    (version "3.8.0") ;same as python-flit-core
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "flit" version))
        (sha256
-        (base32 "04152qj46sqbnlrj7ch9p7svjrrlpzbk0qr39g2yr0s4f5vp6frf"))))
-    (build-system python-build-system)
+        (base32 "0dz9sp2zlhkmk6sm5gapbbb30f7xq3n3jn5zxx5pkp25ppsaiwnh"))))
+    (build-system pyproject-build-system)
     (arguments
      (list
+      #:test-flags
+      ;; These tests fail when FLIT_NO_NETWORK is set
+      '(list "-k" "not test_invalid_classifier \
+and not test_install_requires \
+and not test_install_requires_extra \
+and not test_validate_classifiers_private")
       #:phases
       #~(modify-phases %standard-phases
-          ;; XXX: PEP 517 manual build copied from python-isort.
-          (replace 'build
-            (lambda _
-              (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
-          (replace 'check
+          (add-before 'check 'pre-check
             (lambda* (#:key tests? inputs outputs #:allow-other-keys)
               (when tests?
                 (setenv "HOME" "/tmp")
-                (setenv "FLIT_NO_NETWORK" "1"))))
-          (replace 'install
-            (lambda _
-              (let ((whl (car (find-files "dist" "\\.whl$"))))
-                (invoke "pip" "--no-cache-dir" "--no-input"
-                        "install" "--no-deps" "--prefix" #$output whl)))))))
+                (setenv "FLIT_NO_NETWORK" "1")))))))
     (propagated-inputs
      (list python-pypa-build
            python-tomli-w



reply via email to

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