mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 10:34:54 +00:00
python312Packages.ipython-genutils: replace nose with pynose
This commit is contained in:
parent
1e686ef21b
commit
41fe1e8962
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user