2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
nose,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonAtLeast,
|
2023-10-19 13:55:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipython-genutils";
|
|
|
|
version = "0.2.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
# uses the imp module, upstream says "DO NOT USE"
|
|
|
|
disabled = pythonAtLeast "3.12";
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "ipython_genutils";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-6y4RbnXs751NIo/cZq9UJpr6JqtEYwQuM3hbiHxii6g=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
nose
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
substituteInPlace ipython_genutils/tests/test_path.py \
|
|
|
|
--replace "setUp" "setup_method" \
|
|
|
|
--replace "tearDown" "teardown_method"
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "ipython_genutils" ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Vestigial utilities from IPython";
|
|
|
|
homepage = "https://ipython.org/";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|