1{ lib, buildPythonPackage, fetchPypi, fetchFromGitHub, pythonOlder, python }: 2 3buildPythonPackage rec { 4 pname = "asynctest"; 5 version = "0.11.1"; 6 7 disabled = pythonOlder "3.4"; 8 9 # PyPI tarball doesn't ship test/__init__.py 10 src = fetchFromGitHub { 11 owner = "Martiusweb"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "1vvh5vbq2fbz6426figs85z8779r7svb4dp2v3xynhhv05nh2y6v"; 15 }; 16 17 postPatch = '' 18 # Skip failing test, probably caused by file system access 19 substituteInPlace test/test_selector.py \ 20 --replace "test_events_watched_outside_test_are_ignored" "xtest_events_watched_outside_test_are_ignored" 21 ''; 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}