2018-10-17 06:08:03 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
2018-10-25 21:21:22 +01:00
|
|
|
, pythonOlder
|
|
|
|
, coverage
|
2018-10-17 06:08:03 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nose2";
|
2020-04-04 20:29:05 +01:00
|
|
|
version = "0.9.2";
|
|
|
|
|
|
|
|
# Requires mock 2.0.0 if python < 3.6, but NixPkgs has mock 3.0.5.
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-10-17 06:08:03 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-04-04 20:29:05 +01:00
|
|
|
sha256 = "0pmbb6nk31yhgh4zkcblzxsznml7f7pf5q1ihgrwvbxv4mwzfql7";
|
2018-10-17 06:08:03 +01:00
|
|
|
};
|
|
|
|
|
2020-04-04 20:29:05 +01:00
|
|
|
propagatedBuildInputs = [ six coverage ];
|
2018-10-25 21:21:22 +01:00
|
|
|
|
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";
|
2020-04-04 20:29:05 +01:00
|
|
|
homepage = "https://github.com/nose-devs/nose2";
|
2018-10-17 06:08:03 +01:00
|
|
|
license = licenses.bsd0;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|