about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/calcure/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/calcure/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/misc/calcure/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/calcure/default.nix b/nixpkgs/pkgs/applications/misc/calcure/default.nix
new file mode 100644
index 000000000000..dcd2c62d2185
--- /dev/null
+++ b/nixpkgs/pkgs/applications/misc/calcure/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, python3
+, fetchFromGitHub
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "calcure";
+  version = "3.0.1";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "anufrievroman";
+    repo = "calcure";
+    rev = "refs/tags/${version}";
+    hash = "sha256-rs3TCZjMndeh2N7e+U62baLs+XqWK1Mk7KVnypSnWPg=";
+  };
+
+  nativeBuildInputs = with python3.pkgs; [
+    setuptools
+  ];
+
+  propagatedBuildInputs = with python3.pkgs; [
+    holidays
+    icalendar
+    jdatetime
+    taskw
+  ];
+
+  pythonImportsCheck = [
+    "calcure"
+  ];
+
+  meta = with lib; {
+    description = "Modern TUI calendar and task manager with minimal and customizable UI";
+    homepage = "https://github.com/anufrievroman/calcure";
+    changelog = "https://github.com/anufrievroman/calcure/releases/tag/${version}";
+    license = licenses.mit;
+    maintainers = with maintainers; [ dit7ya ];
+  };
+}