depot/third_party/nixpkgs/pkgs/by-name/do/dooit/package.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

63 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
dooit,
python311,
testers,
nix-update-script,
}:
let
python3 = python311;
in
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=";
};
build-system = with python3.pkgs; [ poetry-core ];
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";
};
}