nixpkgs/pkgs/by-name/do/dooit/package.nix

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

79 lines
1.4 KiB
Nix
Raw Normal View History

2024-07-27 21:48:33 +00:00
{
lib,
fetchFromGitHub,
dooit,
python311,
2024-07-27 21:48:33 +00:00
testers,
nix-update-script,
extraPackages ? [ ],
2023-03-07 13:31:52 +00:00
}:
let
python3 = python311;
in
2023-03-07 13:31:52 +00:00
python3.pkgs.buildPythonApplication rec {
pname = "dooit";
2024-11-18 16:25:56 +00:00
version = "3.0.4";
pyproject = true;
2023-03-07 13:31:52 +00:00
src = fetchFromGitHub {
owner = "dooit-org";
2023-09-16 20:47:52 +00:00
repo = "dooit";
rev = "refs/tags/v${version}";
2024-11-18 16:25:56 +00:00
hash = "sha256-gWpmjpgAn37hfNv4aCCb+7pW/39Ngo8/Za9AdU4YCKA=";
2023-03-07 13:31:52 +00:00
};
2024-07-27 21:48:33 +00:00
build-system = with python3.pkgs; [ poetry-core ];
pythonRelaxDeps = [
"tzlocal"
"textual"
"sqlalchemy"
2023-03-07 13:31:52 +00: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 13:31:52 +00:00
checkInputs = with python3.pkgs; [
pytestCheckHook
faker
];
2023-03-07 13:31:52 +00:00
2024-03-27 02:22:45 +00:00
passthru = {
tests.version = testers.testVersion {
package = dooit;
command = "HOME=$(mktemp -d) dooit --version";
};
updateScript = nix-update-script { };
2023-09-16 20:47:52 +00:00
};
2023-03-07 13:31:52 +00:00
meta = with lib; {
description = "TUI todo manager";
homepage = "https://github.com/dooit-org/dooit";
changelog = "https://github.com/dooit-org/dooit/blob/v${version}/CHANGELOG.md";
2023-03-07 13:31:52 +00:00
license = licenses.mit;
2024-07-27 21:48:33 +00:00
maintainers = with maintainers; [
khaneliman
wesleyjrz
2024-09-29 06:11:25 +00:00
kraanzu
2024-07-27 21:48:33 +00:00
];
2023-11-27 01:17:53 +00:00
mainProgram = "dooit";
2023-03-07 13:31:52 +00:00
};
}