nixpkgs/pkgs/tools/misc/dooit/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.1 KiB
Nix
Raw Normal View History

2023-03-07 14:31:52 +01:00
{ lib
, fetchFromGitHub
2023-09-16 22:47:52 +02:00
, dooit
2023-03-07 14:31:52 +01:00
, python3
2023-09-16 22:47:52 +02:00
, testers
2023-03-07 14:31:52 +01:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "dooit";
2024-01-25 19:37:33 +01:00
version = "2.2.0";
pyproject = true;
2023-03-07 14:31:52 +01:00
src = fetchFromGitHub {
owner = "kraanzu";
2023-09-16 22:47:52 +02:00
repo = "dooit";
2023-03-07 14:31:52 +01:00
rev = "v${version}";
2024-01-25 19:37:33 +01:00
hash = "sha256-GtXRzj+o+FClleh73kqelk0JrSyafZhf847lX1BiS9k=";
2023-03-07 14:31:52 +01:00
};
nativeBuildInputs = with python3.pkgs; [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
2024-03-12 02:36:07 +01:00
"textual"
"tzlocal"
2023-03-07 14:31:52 +01:00
];
propagatedBuildInputs = with python3.pkgs; [
2023-09-14 02:46:08 +02:00
appdirs
2023-03-07 14:31:52 +01:00
pyperclip
2023-09-14 02:46:08 +02:00
python-dateutil
2023-03-07 14:31:52 +01:00
pyyaml
2023-09-14 02:46:08 +02:00
textual
2023-03-07 14:31:52 +01:00
tzlocal
];
# No tests available
doCheck = false;
2023-09-16 22:47:52 +02:00
passthru.tests.version = testers.testVersion {
package = dooit;
command = "HOME=$(mktemp -d) dooit --version";
};
2023-03-07 14:31:52 +01:00
meta = with lib; {
description = "A TUI todo manager";
homepage = "https://github.com/kraanzu/dooit";
changelog = "https://github.com/kraanzu/dooit/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
2023-09-16 16:26:33 +02:00
maintainers = with maintainers; [ khaneliman wesleyjrz ];
2023-11-27 02:17:53 +01:00
mainProgram = "dooit";
2023-03-07 14:31:52 +01:00
};
}