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