kb: init at 0.1.7

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