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";
|
2022-02-14 06:28:29 +00:00
|
|
|
version = "0.11.0";
|
2022-02-15 10:54:08 +00:00
|
|
|
format = "setuptools";
|
2020-04-04 19:29:05 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-10-17 05:08:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-15 10:54:08 +00:00
|
|
|
hash = "sha256-bSCNfW7J+dVcdNrIHJOUvDkG2++BqMpUILK5t/jmnek=";
|
2018-10-17 05:08:03 +00:00
|
|
|
};
|
|
|
|
|
2022-02-15 10:54:08 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
coverage
|
|
|
|
six
|
|
|
|
];
|
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
|
|
|
|
2022-02-15 10:54:08 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"nose2"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-02-15 10:54:08 +00:00
|
|
|
description = "Test runner 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;
|
2022-02-15 10:54:08 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-17 05:08:03 +00:00
|
|
|
};
|
|
|
|
}
|