vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / applications / office / paperwork / paperwork-shell.nix
blobcbda78976b5b1a0f412aefe85c9c937494b1dae6
1 { buildPythonPackage
2 , lib
3 , fetchFromGitLab
5 , isPy3k
6 , isPyPy
8 , openpaperwork-core
9 , openpaperwork-gtk
10 , paperwork-backend
11 , fabulous
12 , rich
13 , getkey
14 , psutil
15 , shared-mime-info
16 , setuptools-scm
18 , pkgs
21 buildPythonPackage rec {
22   pname = "paperwork-shell";
23   inherit (import ./src.nix { inherit fetchFromGitLab; }) version src;
24   format = "pyproject";
26   sourceRoot = "${src.name}/paperwork-shell";
28   # Python 2.x is not supported.
29   disabled = !isPy3k && !isPyPy;
31   patchPhase = ''
32     chmod a+w -R ..
33     patchShebangs ../tools
34   '';
35   propagatedBuildInputs = [
36     openpaperwork-core
37     paperwork-backend
38     fabulous
39     getkey
40     psutil
41     rich
42   ];
44   nativeCheckInputs = [
45     shared-mime-info
46     openpaperwork-gtk
47   ];
49   nativeBuildInputs = [
50     pkgs.gettext
51     pkgs.which
52     setuptools-scm
53   ];
55   preBuild = ''
56     make l10n_compile
57   '';
59   preCheck = ''
60     export HOME=$(mktemp -d)
61     "$out/bin/paperwork-cli" chkdeps
62   '';
64   meta = {
65     description = "CLI for Paperwork";
66     homepage = "https://openpaper.work/";
67     license = lib.licenses.gpl3Plus;
68     maintainers = with lib.maintainers; [ aszlig symphorien ];
69   };