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

76 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2024-07-27 16:48:33 -05:00
{
lib,
fetchFromGitHub,
dooit,
2025-05-30 01:31:05 +02:00
python3,
2024-07-27 16:48:33 -05:00
testers,
nix-update-script,
extraPackages ? [ ],
2023-03-07 10:31:52 -03:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "dooit";
2025-06-09 12:35:38 +00:00
version = "3.2.3";
pyproject = true;
2023-03-07 10:31:52 -03:00
src = fetchFromGitHub {
owner = "dooit-org";
2023-09-16 15:47:52 -05:00
repo = "dooit";
tag = "v${version}";
2025-06-09 12:35:38 +00:00
hash = "sha256-bI9X+2tTLnQwxfsnBmy2vBI3lJ4UX418zOy3oniVKWc=";
2023-03-07 10:31:52 -03:00
};
2024-07-27 16:48:33 -05:00
build-system = with python3.pkgs; [ poetry-core ];
pythonRelaxDeps = [
"tzlocal"
"textual"
"sqlalchemy"
2023-03-07 10:31:52 -03:00
];
propagatedBuildInputs =
with python3.pkgs;
[
pyperclip
textual
pyyaml
python-dateutil
sqlalchemy
platformdirs
tzlocal
click
]
++ extraPackages;
# /homeless-shelter
preBuild = ''
export HOME=$(mktemp -d)
'';
2023-03-07 10:31:52 -03:00
checkInputs = with python3.pkgs; [
pytestCheckHook
faker
];
2023-03-07 10:31:52 -03:00
2024-03-26 21:22:45 -05:00
passthru = {
tests.version = testers.testVersion {
package = dooit;
command = "HOME=$(mktemp -d) dooit --version";
};
updateScript = nix-update-script { };
2023-09-16 15:47:52 -05:00
};
2025-06-02 08:42:56 +02:00
meta = {
2023-03-07 10:31:52 -03:00
description = "TUI todo manager";
homepage = "https://github.com/dooit-org/dooit";
changelog = "https://github.com/dooit-org/dooit/blob/v${version}/CHANGELOG.md";
2025-06-02 08:42:56 +02:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
2024-07-27 16:48:33 -05:00
khaneliman
wesleyjrz
2024-09-29 11:41:25 +05:30
kraanzu
2024-07-27 16:48:33 -05:00
];
2023-11-27 02:17:53 +01:00
mainProgram = "dooit";
2023-03-07 10:31:52 -03:00
};
}