2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-10-09 19:29:22 +00:00
|
|
|
, dooit
|
2023-04-12 12:48:02 +00:00
|
|
|
, python3
|
2023-10-09 19:29:22 +00:00
|
|
|
, testers
|
2024-04-21 15:54:59 +00:00
|
|
|
, nix-update-script
|
2023-04-12 12:48:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "dooit";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "2.2.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kraanzu";
|
2023-10-09 19:29:22 +00:00
|
|
|
repo = "dooit";
|
2023-04-12 12:48:02 +00:00
|
|
|
rev = "v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-GtXRzj+o+FClleh73kqelk0JrSyafZhf847lX1BiS9k=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
2024-01-25 14:12:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
2024-04-21 15:54:59 +00:00
|
|
|
"textual"
|
2024-01-25 14:12:00 +00:00
|
|
|
"tzlocal"
|
2023-04-12 12:48:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2023-10-09 19:29:22 +00:00
|
|
|
appdirs
|
2023-04-12 12:48:02 +00:00
|
|
|
pyperclip
|
2023-10-09 19:29:22 +00:00
|
|
|
python-dateutil
|
2023-04-12 12:48:02 +00:00
|
|
|
pyyaml
|
2023-10-09 19:29:22 +00:00
|
|
|
textual
|
2023-04-12 12:48:02 +00:00
|
|
|
tzlocal
|
|
|
|
];
|
|
|
|
|
|
|
|
# No tests available
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
passthru = {
|
|
|
|
tests.version = testers.testVersion {
|
|
|
|
package = dooit;
|
|
|
|
command = "HOME=$(mktemp -d) dooit --version";
|
|
|
|
};
|
|
|
|
|
|
|
|
updateScript = nix-update-script { };
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "TUI todo manager";
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "https://github.com/kraanzu/dooit";
|
|
|
|
changelog = "https://github.com/kraanzu/dooit/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ khaneliman wesleyjrz ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "dooit";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
}
|