1{ lib, buildPythonPackage, fetchPypi, pythonOlder, python }: 2 3buildPythonPackage rec { 4 pname = "asynctest"; 5 version = "0.12.2"; 6 7 disabled = pythonOlder "3.4"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "77520850ae21620ec31738f4a7b467acaa44de6d3752d8ac7a9f4dcf55d77853"; 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 checkPhase = '' 21 ${python.interpreter} -m unittest test 22 ''; 23 24 meta = with lib; { 25 description = "Enhance the standard unittest package with features for testing asyncio libraries"; 26 homepage = https://github.com/Martiusweb/asynctest; 27 license = licenses.asl20; 28 maintainers = with maintainers; [ dotlambda ]; 29 }; 30}