depot/third_party/nixpkgs/pkgs/development/python-modules/ipython-genutils/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

49 lines
949 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;
maintainers = with lib.maintainers; [ fridh ];
};
}