2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-17 05:08:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-31 08:37:30 +00:00
|
|
|
, python
|
2018-10-17 05:08:03 +00:00
|
|
|
, six
|
2018-10-25 20:21:22 +00:00
|
|
|
, pythonOlder
|
|
|
|
, coverage
|
2018-10-17 05:08:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nose2";
|
2021-01-31 08:08:22 +00:00
|
|
|
version = "0.10.0";
|
2020-04-04 19:29:05 +00:00
|
|
|
|
|
|
|
# Requires mock 2.0.0 if python < 3.6, but NixPkgs has mock 3.0.5.
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-10-17 05:08:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-31 08:08:22 +00:00
|
|
|
sha256 = "886ba617a96de0130c54b24479bd5c2d74d5c940d40f3809c3a275511a0c4a60";
|
2018-10-17 05:08:03 +00:00
|
|
|
};
|
|
|
|
|
2020-04-04 19:29:05 +00:00
|
|
|
propagatedBuildInputs = [ six coverage ];
|
2018-10-25 20:21:22 +00:00
|
|
|
|
2021-01-31 08:37:30 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest
|
|
|
|
'';
|
2018-10-17 05:08:03 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-17 05:08:03 +00:00
|
|
|
description = "nose2 is the next generation of nicer testing for Python";
|
2020-04-04 19:29:05 +00:00
|
|
|
homepage = "https://github.com/nose-devs/nose2";
|
2018-10-17 05:08:03 +00:00
|
|
|
license = licenses.bsd0;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|