![Frederik Rietdijk](/assets/img/avatar_default.png)
In the past I was very active with Python packaging. For several years now I was hardly around as maintainer, so it does not make sense I am listed as a maintainer for these makes. Looking back, I should have removed myself as maintainer already much longer ago. Anyway, better late than never. It's been a fun ride, and I do intend to occasionally contribute to Nixpkgs, but not in the same way it once was.
49 lines
898 B
Nix
49 lines
898 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools
|
|
, nose
|
|
, pytestCheckHook
|
|
, pythonAtLeast
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ipython-genutils";
|
|
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;
|
|
hash = "sha256-6y4RbnXs751NIo/cZq9UJpr6JqtEYwQuM3hbiHxii6g=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
nose
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
substituteInPlace ipython_genutils/tests/test_path.py \
|
|
--replace "setUp" "setup_method" \
|
|
--replace "tearDown" "teardown_method"
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"ipython_genutils"
|
|
];
|
|
|
|
meta = {
|
|
description = "Vestigial utilities from IPython";
|
|
homepage = "https://ipython.org/";
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
}
|