2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
coverage,
|
|
|
|
fetchPypi,
|
|
|
|
isPyPy,
|
|
|
|
isPy311,
|
|
|
|
python,
|
|
|
|
pythonAtLeast,
|
|
|
|
stdenv,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nose3";
|
|
|
|
version = "1.3.8";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
# https://github.com/jayvdb/nose3/issues/5
|
|
|
|
disabled = pythonAtLeast "3.12";
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-diquIsrbiYsAudT0u7n46H+ODd5sSaiM0MVU9OWSW3Y=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ coverage ];
|
|
|
|
|
|
|
|
# PyPy hangs for unknwon reason
|
|
|
|
# Darwin and python 3.11 fail at various assertions and I didn't find an easy way to find skip those tests
|
|
|
|
doCheck = !isPyPy && !stdenv.isDarwin && !isPy311;
|
|
|
|
|
|
|
|
checkPhase = ''
|
2023-11-16 04:20:00 +00:00
|
|
|
${python.pythonOnBuildForHost.interpreter} selftest.py
|
2023-07-15 17:15:38 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fork of nose v1 not using lib2to3 for compatibility with Python 3";
|
|
|
|
homepage = "https://github.com/jayvdb/nose3";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|