1 { lib, buildPythonPackage, fetchPypi, pythonOlder, python, pythonAtLeast }:
3 buildPythonPackage rec {
7 # Unmaintained and incompatible python 3.11
8 disabled = pythonAtLeast "3.11";
11 inherit pname version;
12 sha256 = "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62";
16 # Skip failing test, probably caused by file system access
17 substituteInPlace test/test_selector.py \
18 --replace "test_events_watched_outside_test_are_ignored" "xtest_events_watched_outside_test_are_ignored"
21 # https://github.com/Martiusweb/asynctest/issues/132
22 doCheck = pythonOlder "3.7";
25 ${python.interpreter} -m unittest test
29 description = "Enhance the standard unittest package with features for testing asyncio libraries";
30 homepage = "https://github.com/Martiusweb/asynctest";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ dotlambda ];