1{ lib, buildPythonPackage, fetchPypi, pythonOlder, python }: 2 3buildPythonPackage rec { 4 pname = "asynctest"; 5 version = "0.13.0"; 6 7 disabled = pythonOlder "3.5"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62"; 12 }; 13 14 postPatch = '' 15 # Skip failing test, probably caused by file system access 16 substituteInPlace test/test_selector.py \ 17 --replace "test_events_watched_outside_test_are_ignored" "xtest_events_watched_outside_test_are_ignored" 18 ''; 19 20 # https://github.com/Martiusweb/asynctest/issues/132 21 doCheck = pythonOlder "3.7"; 22 23 checkPhase = '' 24 ${python.interpreter} -m unittest test 25 ''; 26 27 meta = with lib; { 28 description = "Enhance the standard unittest package with features for testing asyncio libraries"; 29 homepage = "https://github.com/Martiusweb/asynctest"; 30 license = licenses.asl20; 31 maintainers = with maintainers; [ dotlambda ]; 32 }; 33}