about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/jrnl/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/jrnl/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/misc/jrnl/default.nix56
1 files changed, 56 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/jrnl/default.nix b/nixpkgs/pkgs/applications/misc/jrnl/default.nix
new file mode 100644
index 000000000000..37142cd20eb5
--- /dev/null
+++ b/nixpkgs/pkgs/applications/misc/jrnl/default.nix
@@ -0,0 +1,56 @@
+{ lib
+, ansiwrap
+, asteval
+, buildPythonApplication
+, colorama
+, cryptography
+, fetchFromGitHub
+, keyring
+, parsedatetime
+, poetry
+, pytestCheckHook
+, python-dateutil
+, pytz
+, pyxdg
+, pyyaml
+, tzlocal
+}:
+
+buildPythonApplication rec {
+  pname = "jrnl";
+  version = "2.8";
+  format = "pyproject";
+
+  src = fetchFromGitHub {
+    owner = "jrnl-org";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1zpsvrjhami9y7204yjbdzi04bkkz6i3apda9fh3hbq83y6wzprz";
+  };
+
+  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 ];
+  };
+}