From 4e4c01ff8c4a3ffcb40203fd47d280d32612e7a1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 23 Mar 2026 23:24:11 +0000 Subject: [PATCH] gnu: python-aioftp: Fix tests. * gnu/packages/python-web.scm (python-aioftp): Fix tests. [source]: Switch to git-fetch. [native-inputs]: Add python-pytest-mock. Change-Id: I73a89803ad17148e590823a79c83ee8feade2371 --- gnu/packages/python-web.scm | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 20589037227..23f18ccbad5 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -7057,16 +7057,20 @@ adapter for use with the Requests library.") (package (name "python-aioftp") (version "0.27.2") - (source (origin - (method url-fetch) - (uri (pypi-uri "aioftp" version)) - (sha256 - (base32 - "06i6xfxxrwncmgihp98jxhy7xngsv2gzv9ijk32rc5q840r8q13w")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aio-libs/aioftp") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1lshyac5zk1w4x7ygkim3726f8gbkvpvlyiqkn9cs6qjxhxn5bxc")))) (build-system pyproject-build-system) (native-inputs (list python-async-timeout python-pytest + python-pytest-mock python-pytest-asyncio python-setuptools python-siosocks