about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorAleksana2024-05-02 21:38:23 +0800
committerGitHub2024-05-02 21:38:23 +0800
commit14a29d478122cd34c44a1c676ebfd8378d190cb2 (patch)
tree790c2a99d2db643e3b096a7867f0ee3da8f9e3f7 /pkgs/by-name
parent8adc2dfa5e4781b41fc087949afcdfb6b94e56ff (diff)
parent62d9b8f7c980c1057549a78870526ed5765f7374 (diff)
Merge pull request #304910 from buurro/init-trak
trak: init at 0.0.5
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/tr/trak/package.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/by-name/tr/trak/package.nix b/pkgs/by-name/tr/trak/package.nix
new file mode 100644
index 000000000000..2129850159bd
--- /dev/null
+++ b/pkgs/by-name/tr/trak/package.nix
@@ -0,0 +1,34 @@
+{ lib
+, fetchFromGitHub
+, python3Packages
+}:
+
+python3Packages.buildPythonApplication rec {
+  pname = "trak";
+  version = "0.0.5";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "lcfd";
+    repo = "trak";
+    rev = "v${version}";
+    hash = "sha256-YJMX7pNRWdNPyWNZ1HfpdYsKSStRWLcianLz6nScMa8=";
+  };
+
+  sourceRoot = "${src.name}/cli";
+
+  dependencies = with python3Packages; [
+    questionary
+    typer
+  ] ++ typer.optional-dependencies.all;
+
+  build-system = [ python3Packages.poetry-core ];
+
+  meta = {
+    description = "Keep a record of the time you dedicate to your projects";
+    homepage = "https://github.com/lcfd/trak";
+    license = lib.licenses.agpl3Only;
+    maintainers = with lib.maintainers; [ buurro ];
+    mainProgram = "trak";
+  };
+}