depot/third_party/nixpkgs/pkgs/by-name/do/dooit/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

60 lines
1.1 KiB
Nix

{ lib
, fetchFromGitHub
, dooit
, python3
, testers
, nix-update-script
}:
python3.pkgs.buildPythonApplication rec {
pname = "dooit";
version = "2.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "kraanzu";
repo = "dooit";
rev = "v${version}";
hash = "sha256-GtXRzj+o+FClleh73kqelk0JrSyafZhf847lX1BiS9k=";
};
nativeBuildInputs = with python3.pkgs; [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"textual"
"tzlocal"
];
propagatedBuildInputs = with python3.pkgs; [
appdirs
pyperclip
python-dateutil
pyyaml
textual
tzlocal
];
# No tests available
doCheck = false;
passthru = {
tests.version = testers.testVersion {
package = dooit;
command = "HOME=$(mktemp -d) dooit --version";
};
updateScript = nix-update-script { };
};
meta = with lib; {
description = "TUI todo manager";
homepage = "https://github.com/kraanzu/dooit";
changelog = "https://github.com/kraanzu/dooit/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ khaneliman wesleyjrz ];
mainProgram = "dooit";
};
}