python311Packages.pprintpp: disable failing tests
Not a real fix as the module is not maintained and still using nose.
This commit is contained in:
parent
436699dfba
commit
83fa9e16a6
|
@ -2,16 +2,18 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, nose
|
|
||||||
, parameterized
|
, parameterized
|
||||||
|
, pytestCheckHook
|
||||||
|
, pynose
|
||||||
, python
|
, python
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pprintpp";
|
pname = "pprintpp";
|
||||||
version = "0.4.0";
|
version = "0.4.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -34,25 +36,37 @@ buildPythonPackage rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
build-system = [
|
||||||
nose
|
setuptools
|
||||||
parameterized
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
nativeCheckInputs = [
|
||||||
${python.interpreter} test.py
|
parameterized
|
||||||
'';
|
pynose
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"pprintpp"
|
"pprintpp"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"test.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# AttributeError: 'EncodedFile' object has no attribute 'getvalue'
|
||||||
|
"test_pp"
|
||||||
|
"test_pp_pprint"
|
||||||
|
"test_fmt"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A drop-in replacement for pprint that's actually pretty";
|
description = "A drop-in replacement for pprint that's actually pretty";
|
||||||
mainProgram = "pypprint";
|
|
||||||
homepage = "https://github.com/wolever/pprintpp";
|
homepage = "https://github.com/wolever/pprintpp";
|
||||||
changelog = "https://github.com/wolever/pprintpp/blob/${version}/CHANGELOG.txt";
|
changelog = "https://github.com/wolever/pprintpp/blob/${version}/CHANGELOG.txt";
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
maintainers = with maintainers; [ jakewaksbaum ];
|
maintainers = with maintainers; [ jakewaksbaum ];
|
||||||
|
mainProgram = "pypprint";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user