summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2023-02-04 22:58:53 -0800
committerRobert Schütz <nix@dotlambda.de>2023-02-04 22:58:53 -0800
commitc85857de4a9f70e33030d36577f52197150df98c (patch)
treeee6c239f1f8ea85667ddeb50851c0c01f6ae2d43
parent7590fa36d81157f431bf2c6f58625339912ea819 (diff)
python310Packages.aiofile: don't depend on asynctest
This fixes the build on Python 3.11.
-rw-r--r--pkgs/development/python-modules/aiofile/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/aiofile/default.nix b/pkgs/development/python-modules/aiofile/default.nix
index a2c4eaf5ff8e..5d79aaa1bc32 100644
--- a/pkgs/development/python-modules/aiofile/default.nix
+++ b/pkgs/development/python-modules/aiofile/default.nix
@@ -1,9 +1,9 @@
{ lib
, aiomisc
-, asynctest
, caio
, buildPythonPackage
, fetchFromGitHub
+, fetchpatch
, pytestCheckHook
, pythonOlder
}:
@@ -22,13 +22,20 @@ buildPythonPackage rec {
hash = "sha256-PIImQZ1ymazsOg8qmlO91tNYHwXqK/d8AuKPsWYvh0w=";
};
+ patches = [
+ (fetchpatch {
+ name = "remove-asynctest.patch";
+ url = "https://github.com/mosquito/aiofile/commit/9253ca42022f17f630ccfb6811f67876910f8b13.patch";
+ hash = "sha256-yMRfqEbdxApFypEj27v1zTgF/4kuLf5aS/+clo3mfZo=";
+ })
+ ];
+
propagatedBuildInputs = [
caio
];
nativeCheckInputs = [
aiomisc
- asynctest
pytestCheckHook
];