From 045fcc78ca44ceb3e5f07a95156842bb2f965a23 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 17 Nov 2024 21:45:21 +0000 Subject: [PATCH] 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]: 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 e9501df85f2bc7ac57b91f1a3b196679ebe03c26..ac08830fd581f385ccd1510abdda208c919a10d4 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