From 60745b6fa1618e2674259c2b1811f260ce39ac94 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 27 Nov 2025 18:37:50 +0000 Subject: [PATCH] gnu: python-pytest-tornasync: Switch to pyproject. * gnu/packages/python-check.scm (python-pytest-tornasync): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Drop all. [propagated-inputs]: Remove python-pytest. [native-inputs]: Add python-pytest-bootstrap and python-setuptools. Change-Id: I78cca7bbbe4ba233fd24c3b986174a823d288443 --- gnu/packages/python-check.scm | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 332f6c27665d7daa4b95765db61367c7ceddbcb4..ea2a0006f56a1e4bcd11b15dce6dc784674a8ba8 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -3938,23 +3938,19 @@ simplify testing of asynchronous tornado applications.") (version "0.6.0.post2") (source (origin - (method url-fetch) - (uri (pypi-uri "pytest-tornasync" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/eukaryote/pytest-tornasync") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "0pdyddbzppkfqwa7g17sdfl4w2v1hgsky78l8f4c1rx2a7cvd0fp")))) - (build-system python-build-system) - (arguments - `(#:tests? #false ; TODO: fails at "from test import MESSAGE, PAUSE_TIME" - #:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key inputs outputs tests? #:allow-other-keys) - (when tests? - (add-installed-pythonpath inputs outputs) - (invoke "pytest" "--verbose"))))))) + (base32 "0iwaxvaxx9v0s1sx4kh90kpf1krzwqh73sg6lv3f2gvh0wjym85f")))) + (build-system pyproject-build-system) + (native-inputs + (list python-pytest-bootstrap + python-setuptools)) (propagated-inputs - (list python-pytest python-tornado-6)) + (list python-tornado-6)) (home-page "https://github.com/eukaryote/pytest-tornasync") (synopsis "Pytest plugin for testing Tornado code") (description