tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
browsr: init at 1.10.7
https://github.com/juftin/browsr
figsoda
2 years ago
7f7bc502
b125852f
+87
2 changed files
expand all
collapse all
unified
split
pkgs
applications
file-managers
browsr
default.nix
top-level
all-packages.nix
+85
pkgs/applications/file-managers/browsr/default.nix
···
1
1
+
{ lib
2
2
+
, python3
3
3
+
, fetchFromGitHub
4
4
+
, extras ? [ "all" ]
5
5
+
}:
6
6
+
7
7
+
python3.pkgs.buildPythonApplication rec {
8
8
+
pname = "browsr";
9
9
+
version = "1.10.7";
10
10
+
format = "pyproject";
11
11
+
12
12
+
src = fetchFromGitHub {
13
13
+
owner = "juftin";
14
14
+
repo = "browsr";
15
15
+
rev = "v${version}";
16
16
+
hash = "sha256-AT5cFQ4CldlHv3MQYAGXdZVB3bNAAvbJeosdxZjcPBM=";
17
17
+
};
18
18
+
19
19
+
nativeBuildInputs = with python3.pkgs; [
20
20
+
hatchling
21
21
+
pythonRelaxDepsHook
22
22
+
pytestCheckHook
23
23
+
];
24
24
+
25
25
+
propagatedBuildInputs = with python3.pkgs; [
26
26
+
art
27
27
+
click
28
28
+
fsspec
29
29
+
pandas
30
30
+
pillow
31
31
+
pymupdf
32
32
+
rich
33
33
+
rich-click
34
34
+
rich-pixels
35
35
+
textual
36
36
+
universal-pathlib
37
37
+
] ++ lib.attrVals extras passthru.optional-dependencies;
38
38
+
39
39
+
passthru.optional-dependencies = with python3.pkgs; {
40
40
+
all = [
41
41
+
adlfs
42
42
+
aiohttp
43
43
+
gcsfs
44
44
+
paramiko
45
45
+
pyarrow
46
46
+
requests
47
47
+
s3fs
48
48
+
];
49
49
+
parquet = [
50
50
+
pyarrow
51
51
+
];
52
52
+
remote = [
53
53
+
adlfs
54
54
+
aiohttp
55
55
+
gcsfs
56
56
+
paramiko
57
57
+
requests
58
58
+
s3fs
59
59
+
];
60
60
+
};
61
61
+
62
62
+
pythonRelaxDeps = [
63
63
+
"fsspec"
64
64
+
"pymupdf"
65
65
+
"rich-click"
66
66
+
"textual"
67
67
+
];
68
68
+
69
69
+
pythonImportsCheck = [ "browsr" ];
70
70
+
71
71
+
# requires internet access
72
72
+
disabledTests = [
73
73
+
"test_github_screenshot"
74
74
+
"test_github_screenshot_license"
75
75
+
"test_textual_app_context_path_github"
76
76
+
];
77
77
+
78
78
+
meta = with lib; {
79
79
+
description = "A file explorer in your terminal";
80
80
+
homepage = "https://github.com/juftin/browsr";
81
81
+
changelog = "https://github.com/fsspec/universal_pathlib/releases/tag/${src.rev}";
82
82
+
license = licenses.mit;
83
83
+
maintainers = with maintainers; [ figsoda ];
84
84
+
};
85
85
+
}
+2
pkgs/top-level/all-packages.nix
···
2552
2552
2553
2553
### APPLICATIONS/FILE-MANAGERS
2554
2554
2555
2555
+
browsr = callPackage ../applications/file-managers/browsr { };
2556
2556
+
2555
2557
cfm = callPackage ../applications/file-managers/cfm { };
2556
2558
2557
2559
clex = callPackage ../applications/file-managers/clex { };