tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
kb: init at 0.1.7
Wesley Jr
2 years ago
d2b3adf3
63576d1c
+60
2 changed files
expand all
collapse all
unified
split
pkgs
tools
misc
kb
default.nix
top-level
all-packages.nix
+58
pkgs/tools/misc/kb/default.nix
···
1
1
+
{ lib
2
2
+
, fetchFromGitHub
3
3
+
, python3
4
4
+
}:
5
5
+
6
6
+
python3.pkgs.buildPythonApplication rec {
7
7
+
pname = "kb";
8
8
+
version = "0.1.7";
9
9
+
format = "setuptools";
10
10
+
11
11
+
src = fetchFromGitHub {
12
12
+
owner = "gnebbia";
13
13
+
repo = pname;
14
14
+
rev = "v${version}";
15
15
+
hash = "sha256-K8EAqZbl2e0h03fFwaKIclZTZARDQp1tRo44znxwW0I=";
16
16
+
};
17
17
+
18
18
+
postPatch = ''
19
19
+
# `attr` module is not available. And `attrs` defines another `attr` package
20
20
+
# that shadows it.
21
21
+
substituteInPlace setup.py \
22
22
+
--replace \
23
23
+
"install_requires=[\"colored\",\"toml\",\"attr\",\"attrs\",\"gitpython\"]," \
24
24
+
"install_requires=[\"colored\",\"toml\",\"attrs\",\"gitpython\"],"
25
25
+
26
26
+
# pytest coverage reporting isn't necessary
27
27
+
substituteInPlace setup.cfg \
28
28
+
--replace \
29
29
+
"addopts = --cov=kb --cov-report term-missing" ""
30
30
+
'';
31
31
+
32
32
+
propagatedBuildInputs = with python3.pkgs; [
33
33
+
colored
34
34
+
toml
35
35
+
attrs
36
36
+
gitpython
37
37
+
];
38
38
+
39
39
+
nativeCheckInputs = with python3.pkgs; [
40
40
+
pytestCheckHook
41
41
+
];
42
42
+
43
43
+
meta = with lib; {
44
44
+
description = "A minimalist command line knowledge base manager";
45
45
+
longDescription = ''
46
46
+
kb is a text-oriented minimalist command line knowledge base manager. kb
47
47
+
can be considered a quick note collection and access tool oriented toward
48
48
+
software developers, penetration testers, hackers, students or whoever has
49
49
+
to collect and organize notes in a clean way. Although kb is mainly
50
50
+
targeted on text-based note collection, it supports non-text files as well
51
51
+
(e.g., images, pdf, videos and others).
52
52
+
'';
53
53
+
homepage = "https://github.com/gnebbia/kb";
54
54
+
changelog = "https://github.com/gnebbia/kb/blob/v${version}/CHANGELOG.md";
55
55
+
license = licenses.gpl3Plus;
56
56
+
maintainers = with maintainers; [ wesleyjrz ];
57
57
+
};
58
58
+
}
+2
pkgs/top-level/all-packages.nix
···
10229
10229
10230
10230
nb = callPackage ../tools/misc/nb { };
10231
10231
10232
10232
+
kb = callPackage ../tools/misc/kb { };
10233
10233
+
10232
10234
notable = callPackage ../applications/misc/notable { };
10233
10235
10234
10236
nth = with python3Packages; toPythonApplication name-that-hash;