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.2";
13 disabled = isPy27;
14
15 src = fetchFromGitHub {
16 owner = "kwarunek";
17 repo = pname;
18 rev = "refs/tags/${version}";
19 hash = "sha256-7lDOI1SHPpRZLTHRTmfbKlZH18T73poJdFyVmb+HKms=";
20 };
21
22 propagatedBuildInputs = [
23 wrapt
24 ];
25
26 nativeCheckInputs = [
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}