1{ lib, buildPythonPackage, fetchPypi, pythonOlder, python, isPy38 }:
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 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 broken = isPy38;
30 };
31}