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";
|
2018-06-30 11:21:48 +01:00
|
|
|
version = "0.12.2";
|
2018-02-04 21:13:11 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
2018-06-30 11:21:48 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "77520850ae21620ec31738f4a7b467acaa44de6d3752d8ac7a9f4dcf55d77853";
|
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"
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Enhance the standard unittest package with features for testing asyncio libraries";
|
|
|
|
homepage = https://github.com/Martiusweb/asynctest;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|