2018-07-21 01:44:44 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder, python }:
|
2018-02-04 21:13:11 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asynctest";
|
2019-05-22 13:25:25 +01:00
|
|
|
version = "0.13.0";
|
2018-02-04 21:13:11 +00:00
|
|
|
|
2019-05-22 13:25:25 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
2018-02-04 21:13:11 +00:00
|
|
|
|
2018-06-30 11:21:48 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-05-22 13:25:25 +01:00
|
|
|
sha256 = "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62";
|
2018-02-04 21:13:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2020-06-19 10:52:03 +01:00
|
|
|
# https://github.com/Martiusweb/asynctest/issues/132
|
|
|
|
doCheck = pythonOlder "3.8";
|
|
|
|
|
2018-02-04 21:13:11 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Enhance the standard unittest package with features for testing asyncio libraries";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Martiusweb/asynctest";
|
2018-02-04 21:13:11 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|