nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 blessed,
7 rich,
8 pytestCheckHook,
9 pandas,
10}:
11
12buildPythonPackage {
13 pname = "objexplore";
14 version = "1.6.2";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "kylepollina";
19 repo = "objexplore";
20 # tags for >1.5.4 are not availables on github
21 # see: https://github.com/kylepollina/objexplore/issues/25
22 rev = "3c2196d26e5a873eed0a694cddca66352ea7c81e";
23 hash = "sha256-BgeuRRuvbB4p99mwCjNxm3hYEZuGua8x2GdoVssQ7eI=";
24 };
25
26 pythonRelaxDeps = [
27 "blessed"
28 "rich"
29 ];
30
31 build-system = [ setuptools ];
32
33 dependencies = [
34 blessed
35 rich
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 pandas
41 ];
42
43 pythonImportsCheck = [
44 "objexplore"
45 "objexplore.cached_object"
46 "objexplore.explorer"
47 "objexplore.filter"
48 "objexplore.help_layout"
49 "objexplore.objexplore"
50 "objexplore.overview"
51 "objexplore.stack"
52 "objexplore.utils"
53 ];
54
55 meta = {
56 description = "Terminal UI to interactively inspect and explore Python objects";
57 homepage = "https://github.com/kylepollina/objexplore";
58 license = lib.licenses.mit;
59 maintainers = with lib.maintainers; [
60 pbsds
61 sigmanificient
62 ];
63 };
64}