nixpkgs/pkgs/tools/misc/dooit/default.nix
2023-04-01 20:42:03 -03:00

49 lines
942 B
Nix

{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "dooit";
version = "1.0.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "kraanzu";
repo = pname;
rev = "v${version}";
hash = "sha256-7a6xoqbAmnGVUVppQTSo4hH44XFCqBnF7xO7sOVySY0=";
};
# Required versions not available
pythonRelaxDeps = [
"textual"
"tzlocal"
];
nativeBuildInputs = with python3.pkgs; [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = with python3.pkgs; [
textual
pyperclip
pyyaml
dateparser
tzlocal
appdirs
];
# No tests available
doCheck = false;
meta = with lib; {
description = "A 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; [ wesleyjrz ];
};
}