python3Packages.asynctest: init at 0.11.1
This commit is contained in:
parent
9ba4b1621d
commit
988bec8774
33
pkgs/development/python-modules/asynctest/default.nix
Normal file
33
pkgs/development/python-modules/asynctest/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, fetchFromGitHub, pythonOlder, python }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "asynctest";
|
||||
version = "0.11.1";
|
||||
|
||||
disabled = pythonOlder "3.4";
|
||||
|
||||
# PyPI tarball doesn't ship test/__init__.py
|
||||
src = fetchFromGitHub {
|
||||
owner = "Martiusweb";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1vvh5vbq2fbz6426figs85z8779r7svb4dp2v3xynhhv05nh2y6v";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -623,6 +623,8 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
asynctest = callPackage ../development/python-modules/asynctest { };
|
||||
|
||||
async-timeout = callPackage ../development/python-modules/async_timeout { };
|
||||
|
||||
asn1ate = callPackage ../development/python-modules/asn1ate { };
|
||||
|
Loading…
Reference in New Issue
Block a user