summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/objexplore/default.nix
blob: 7e42cbe74a6db3a72f6e161eb3424012aba66cc3 (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  blessed,
  rich,
  pytestCheckHook,
  pandas,
}:

buildPythonPackage {
  pname = "objexplore";
  version = "1.6.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "kylepollina";
    repo = "objexplore";
    # tags for >1.5.4 are not availables on github
    # see: https://github.com/kylepollina/objexplore/issues/25
    rev = "3c2196d26e5a873eed0a694cddca66352ea7c81e";
    hash = "sha256-BgeuRRuvbB4p99mwCjNxm3hYEZuGua8x2GdoVssQ7eI=";
  };

  pythonRelaxDeps = [
    "blessed"
    "rich"
  ];

  build-system = [ setuptools ];

  dependencies = [
    blessed
    rich
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pandas
  ];

  pythonImportsCheck = [
    "objexplore"
    "objexplore.cached_object"
    "objexplore.explorer"
    "objexplore.filter"
    "objexplore.help_layout"
    "objexplore.objexplore"
    "objexplore.overview"
    "objexplore.stack"
    "objexplore.utils"
  ];

  meta = {
    description = "Terminal UI to interactively inspect and explore Python objects";
    homepage = "https://github.com/kylepollina/objexplore";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      pbsds
      sigmanificient
    ];
  };
}