2018-10-17 06:08:03 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
2018-10-25 21:21:22 +01:00
|
|
|
, pythonOlder
|
|
|
|
, mock
|
|
|
|
, coverage
|
2018-10-17 06:08:03 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nose2";
|
2019-07-20 09:36:23 +01:00
|
|
|
version = "0.9.1";
|
2018-10-17 06:08:03 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-20 09:36:23 +01:00
|
|
|
sha256 = "16drs4bc2wvgwwi1pf6pmk6c00pl16vs1v7djc4a8kwpsxpibphf";
|
2018-10-17 06:08:03 +01:00
|
|
|
};
|
|
|
|
|
2018-10-25 21:21:22 +01:00
|
|
|
propagatedBuildInputs = [ six coverage ]
|
|
|
|
++ stdenv.lib.optionals (pythonOlder "3.4") [ mock ];
|
|
|
|
|
2018-10-17 06:08:03 +01: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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|