1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, nose
5, coverage
6, isPy27
7, wrapt
8}:
9
10buildPythonPackage rec {
11 pname = "aiounittest";
12 version = "1.4.1";
13 disabled = isPy27;
14
15 src = fetchFromGitHub {
16 owner = "kwarunek";
17 repo = pname;
18 rev = version;
19 sha256 = "sha256-FixGF1JLJVqTgLaWugbeu8f+SDjpHSdSLoGklYBup4M=";
20 };
21
22 propagatedBuildInputs = [
23 wrapt
24 ];
25
26 checkInputs = [
27 nose
28 coverage
29 ];
30
31 checkPhase = ''
32 nosetests
33 '';
34
35 pythonImportsCheck = [ "aiounittest" ];
36
37 meta = with lib; {
38 description = "Test asyncio code more easily";
39 homepage = "https://github.com/kwarunek/aiounittest";
40 license = licenses.mit;
41 maintainers = [ maintainers.costrouc ];
42 };
43}