1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, six
5, pythonOlder
6, coverage
7}:
8
9buildPythonPackage rec {
10 pname = "nose2";
11 version = "0.9.2";
12
13 # Requires mock 2.0.0 if python < 3.6, but NixPkgs has mock 3.0.5.
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "0pmbb6nk31yhgh4zkcblzxsznml7f7pf5q1ihgrwvbxv4mwzfql7";
19 };
20
21 propagatedBuildInputs = [ six coverage ];
22
23 # AttributeError: 'module' object has no attribute 'collector'
24 doCheck = false;
25
26 meta = with stdenv.lib; {
27 description = "nose2 is the next generation of nicer testing for Python";
28 homepage = "https://github.com/nose-devs/nose2";
29 license = licenses.bsd0;
30 };
31
32}