e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
49 lines
1,016 B
Nix
49 lines
1,016 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, dooit
|
|
, python3
|
|
, testers
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "dooit";
|
|
version = "2.1.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kraanzu";
|
|
repo = "dooit";
|
|
rev = "v${version}";
|
|
hash = "sha256-YfWfh8oDZSG1DdAV+hzchqyNSSqyeNR5SSEa9B5yGY8=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
poetry-core
|
|
];
|
|
|
|
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";
|
|
};
|
|
|
|
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; [ khaneliman wesleyjrz ];
|
|
mainProgram = "dooit";
|
|
};
|
|
}
|