2018-10-17 05:08:03 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
2018-10-25 20:21:22 +00:00
|
|
|
, pythonOlder
|
|
|
|
, mock
|
|
|
|
, coverage
|
2018-10-17 05:08:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nose2";
|
2018-10-25 20:21:22 +00:00
|
|
|
version = "0.8.0";
|
2018-10-17 05:08:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-25 20:21:22 +00:00
|
|
|
sha256 = "9052f2b46807b63d9bdf68e0768da1f8386368889b50043fd5d0889c470258f3";
|
2018-10-17 05:08:03 +00:00
|
|
|
};
|
|
|
|
|
2018-10-25 20:21:22 +00:00
|
|
|
propagatedBuildInputs = [ six coverage ]
|
|
|
|
++ stdenv.lib.optionals (pythonOlder "3.4") [ mock ];
|
|
|
|
|
2018-10-17 05:08:03 +00:00
|
|
|
# AttributeError: 'module' object has no attribute 'collector'
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "nose2 is the next generation of nicer testing for Python";
|
|
|
|
homepage = https://github.com/nose-devs/nose2;
|
|
|
|
license = licenses.bsd0;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|