python312Packages.ipython-genutils: replace nose with pynose

This commit is contained in:
natsukium 2024-07-07 16:54:36 +09:00
parent 1e686ef21b
commit 41fe1e8962
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -3,9 +3,8 @@
buildPythonPackage,
fetchPypi,
setuptools,
nose,
pynose,
pytestCheckHook,
pythonAtLeast,
}:
buildPythonPackage rec {
@ -13,9 +12,6 @@ buildPythonPackage rec {
version = "0.2.0";
pyproject = true;
# uses the imp module, upstream says "DO NOT USE"
disabled = pythonAtLeast "3.12";
src = fetchPypi {
pname = "ipython_genutils";
inherit version;
@ -25,14 +21,16 @@ buildPythonPackage rec {
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [
nose
pynose
pytestCheckHook
];
preCheck = ''
substituteInPlace ipython_genutils/tests/test_path.py \
--replace "setUp" "setup_method" \
--replace "tearDown" "teardown_method"
--replace-fail "setUp" "setup_method" \
--replace-fail "tearDown" "teardown_method" \
--replace-fail "assert_equals" "assert_equal" \
--replace-fail "assert_not_equals" "assert_not_equal"
'';
pythonImportsCheck = [ "ipython_genutils" ];