summary refs log tree commit diff
path: root/pkgs/development/python-modules/ipython-genutils/default.nix
blob: e3a7b6c0a44494f83a51f09de2629c4db74a1a1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, nose
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "ipython-genutils";
  version = "0.2.0";
  pyproject = true;

  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 ];
  };
}