about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/jrnl/default.nix
blob: 8d2cabb5b8b2a408d04cce6ef6f8344c77b4694e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{ lib
, ansiwrap
, asteval
, buildPythonApplication
, colorama
, cryptography
, fetchFromGitHub
, keyring
, parsedatetime
, poetry
, pytestCheckHook
, python-dateutil
, pytz
, pyxdg
, pyyaml
, tzlocal
}:

buildPythonApplication rec {
  pname = "jrnl";
  version = "2.7";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "jrnl-org";
    repo = pname;
    rev = "v${version}";
    sha256 = "1hyjjw9mxy73n3pkliaaif135h2sd4iy43pw9d5zynid5abnr3yz";
  };

  nativeBuildInputs = [ poetry ];

  propagatedBuildInputs = [
    ansiwrap
    asteval
    colorama
    cryptography
    keyring
    parsedatetime
    python-dateutil
    pytz
    pyxdg
    pyyaml
    tzlocal
  ];

  checkInputs = [ pytestCheckHook ];
  pythonImportsCheck = [ "jrnl" ];

  meta = with lib; {
    homepage = "http://maebert.github.io/jrnl/";
    description = "A simple command line journal application that stores your journal in a plain text file";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ zalakain ];
  };
}