Files
nixpkgs/pkgs/by-name/do/dooit/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

77 lines
1.4 KiB
Nix

{
lib,
fetchFromGitHub,
dooit,
python3,
testers,
nix-update-script,
extraPackages ? [ ],
}:
python3.pkgs.buildPythonApplication rec {
pname = "dooit";
version = "3.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "dooit-org";
repo = "dooit";
tag = "v${version}";
hash = "sha256-MWdih+j7spUVEWXCBzF2J/FVXK0TQ8VhrJNDhNfxpQE=";
};
build-system = with python3.pkgs; [ poetry-core ];
pythonRelaxDeps = [
"tzlocal"
"textual"
"sqlalchemy"
];
propagatedBuildInputs =
with python3.pkgs;
[
pyperclip
textual
pyyaml
python-dateutil
sqlalchemy
platformdirs
tzlocal
click
]
++ extraPackages;
# /homeless-shelter
preBuild = ''
export HOME=$(mktemp -d)
'';
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
faker
pytest-asyncio
];
passthru = {
tests.version = testers.testVersion {
package = dooit;
command = "HOME=$(mktemp -d) dooit --version";
};
updateScript = nix-update-script { };
};
meta = {
description = "TUI todo manager";
homepage = "https://github.com/dooit-org/dooit";
changelog = "https://github.com/dooit-org/dooit/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
khaneliman
wesleyjrz
kraanzu
];
mainProgram = "dooit";
};
}