2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-10-09 19:29:22 +00:00
|
|
|
, dooit
|
2023-04-12 12:48:02 +00:00
|
|
|
, python3
|
2023-10-09 19:29:22 +00:00
|
|
|
, testers
|
2023-04-12 12:48:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "dooit";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.0.1";
|
2023-04-12 12:48:02 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kraanzu";
|
2023-10-09 19:29:22 +00:00
|
|
|
repo = "dooit";
|
2023-04-12 12:48:02 +00:00
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-iQAGD6zrBBd4fJONaB7to1OJpAJUO0zeA1xhVQZBkMc=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2023-10-09 19:29:22 +00:00
|
|
|
appdirs
|
2023-04-12 12:48:02 +00:00
|
|
|
pyperclip
|
2023-10-09 19:29:22 +00:00
|
|
|
python-dateutil
|
2023-04-12 12:48:02 +00:00
|
|
|
pyyaml
|
2023-10-09 19:29:22 +00:00
|
|
|
textual
|
2023-04-12 12:48:02 +00:00
|
|
|
tzlocal
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# NOTE pyproject version was bumped after release tag 2.0.1 - remove after next release.
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "version = \"2.0.0\"" "version = \"2.0.1\""
|
|
|
|
'';
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
# No tests available
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = dooit;
|
|
|
|
command = "HOME=$(mktemp -d) dooit --version";
|
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
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;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ khaneliman wesleyjrz ];
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
}
|