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