guix-commits
[Top][All Lists]
Advanced

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

351/361: gnu: python-pytest-httpserver: Update to 1.1.0.


From: guix-commits
Subject: 351/361: gnu: python-pytest-httpserver: Update to 1.1.0.
Date: Fri, 22 Nov 2024 06:01:13 -0500 (EST)

andreas pushed a commit to branch python-team
in repository guix.

commit da066b9f88cdcdb60d9b40f4d9bd91dc57b2e241
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Nov 17 21:45:21 2024 +0000

    gnu: python-pytest-httpserver: Update to 1.1.0.
    
    * gnu/packages/check.scm (python-pytest-httpserver): Update to
    1.1.0. Adjust indentation.
    [build-system]: Swap to pyproject-build-system.
    [arguments]<phases>: Remove 'fix-library-loading phase, and use default
    'check phase.
    [native-inputs]: Add python-poetry-core and python-toml.
    
    Change-Id: Id0857d4042a3edfb676a46b8c20d051aa4cb1f93
---
 gnu/packages/check.scm | 35 ++++++++++++++---------------------
 1 file changed, 14 insertions(+), 21 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index a484b8df2e..a556ed1ab4 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1797,32 +1797,25 @@ update print statements
 (define-public python-pytest-httpserver
   (package
     (name "python-pytest-httpserver")
-    (version "1.0.0")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "pytest_httpserver" version))
-              (sha256
-               (base32
-                "0vbls0j570l5my83j4jnk5blmnir44i0w511azlh41nl6k8rac5f"))))
-    (build-system python-build-system)
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pytest_httpserver" version))
+       (sha256
+        (base32 "00c7vki5qpl40qn5riyppkjnmgrvhsbg0hsdp6qm3m9fkqcv073b"))))
+    (build-system pyproject-build-system)
     (native-inputs
-     (list python-pytest))
+     (list python-poetry-core
+           python-toml
+           python-pytest))
     (propagated-inputs
      (list python-werkzeug))
-    (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (add-before 'check 'fix-library-loading
-           (lambda _
-             (setenv "GUIX_PYTHONPATH" (string-append (getenv 
"GUIX_PYTHONPATH") ":."))))
-         (replace 'check
-           (lambda _
-             (invoke "pytest" "tests" "-vv")
-             (invoke "pytest" "tests" "-vv" "--ssl"))))))
     (home-page "https://github.com/csernazs/pytest-httpserver";)
     (synopsis "HTTP server for pytest")
-    (description "Pytest plugin library to test http clients without
-contacting the real http server.")
+    (description
+     "Pytest plugin library to test http clients without contacting the real
+http server.")
     (license license:expat)))
 
 (define-public python-pytest-nunit



reply via email to

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