1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, six
6, pythonOlder
7, coverage
8}:
9
10buildPythonPackage rec {
11 pname = "nose2";
12 version = "0.12.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-lW55ub1VjuCLYgDAWtLHZGW344YMDAU3aGCJKFwyARM=";
20 };
21
22 propagatedBuildInputs = [
23 coverage
24 six
25 ];
26
27 checkPhase = ''
28 ${python.interpreter} -m unittest
29 '';
30
31 pythonImportsCheck = [
32 "nose2"
33 ];
34
35 meta = with lib; {
36 description = "Test runner for Python";
37 homepage = "https://github.com/nose-devs/nose2";
38 license = licenses.bsd0;
39 maintainers = with maintainers; [ ];
40 };
41}