1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fetchpatch,
6 setuptools,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "ipython-genutils";
12 version = "0.2.0";
13 pyproject = true;
14
15 src = fetchPypi {
16 pname = "ipython_genutils";
17 inherit version;
18 hash = "sha256-6y4RbnXs751NIo/cZq9UJpr6JqtEYwQuM3hbiHxii6g=";
19 };
20
21 patches = [
22 (fetchpatch {
23 name = "ipython_genutils-denose.patch";
24 url = "https://build.opensuse.org/public/source/devel:languages:python:jupyter/python-ipython_genutils/denose.patch?rev=9";
25 hash = "sha256-At0aq6rLw/L64Own069m0p/WQm7iDa24fm0SPLLRBdE=";
26 })
27 ];
28
29 nativeBuildInputs = [ setuptools ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 pythonImportsCheck = [ "ipython_genutils" ];
34
35 meta = {
36 description = "Vestigial utilities from IPython";
37 homepage = "https://ipython.org/";
38 license = lib.licenses.bsd3;
39 };
40}