nixpkgs/pkgs/by-name/do/dooit/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
1.6 KiB
Nix
Raw Normal View History

2024-07-27 21:48:33 +00:00
{
lib,
fetchFromGitHub,
dooit,
python311,
2024-07-27 21:48:33 +00:00
testers,
nix-update-script,
2023-03-07 13:31:52 +00:00
}:
let
python3 = python311;
in
2023-03-07 13:31:52 +00:00
python3.pkgs.buildPythonApplication rec {
pname = "dooit";
2024-01-25 18:37:33 +00:00
version = "2.2.0";
pyproject = true;
2023-03-07 13:31:52 +00:00
src = fetchFromGitHub {
owner = "kraanzu";
2023-09-16 20:47:52 +00:00
repo = "dooit";
2023-03-07 13:31:52 +00:00
rev = "v${version}";
2024-01-25 18:37:33 +00:00
hash = "sha256-GtXRzj+o+FClleh73kqelk0JrSyafZhf847lX1BiS9k=";
2023-03-07 13:31:52 +00:00
};
2024-07-27 21:48:33 +00:00
build-system = with python3.pkgs; [ poetry-core ];
pythonRelaxDeps = [
"tzlocal"
2023-03-07 13:31:52 +00:00
];
propagatedBuildInputs = with python3.pkgs; [
2023-09-14 00:46:08 +00:00
appdirs
2023-03-07 13:31:52 +00:00
pyperclip
2023-09-14 00:46:08 +00:00
python-dateutil
2023-03-07 13:31:52 +00:00
pyyaml
2024-09-29 05:12:54 +00:00
(textual.overridePythonAttrs (oldAttrs: {
version = "0.47.1";
src = fetchFromGitHub {
owner = "Textualize";
repo = "textual";
rev = "refs/tags/v0.47.1";
hash = "sha256-RFaZKQ+0o6ZvfZxx95a1FjSHVJ0VOIAfzkdxYQXYBKU=";
};
disabledTests = [
"test_tracked_slugs"
"test_textual_env_var"
"test_register_language"
"test_register_language_existing_language"
];
}))
2023-03-07 13:31:52 +00:00
tzlocal
];
# No tests available
doCheck = false;
2024-03-27 02:22:45 +00:00
passthru = {
tests.version = testers.testVersion {
package = dooit;
command = "HOME=$(mktemp -d) dooit --version";
};
updateScript = nix-update-script { };
2023-09-16 20:47:52 +00:00
};
2023-03-07 13:31:52 +00:00
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;
2024-07-27 21:48:33 +00:00
maintainers = with maintainers; [
khaneliman
wesleyjrz
2024-09-29 06:11:25 +00:00
kraanzu
2024-07-27 21:48:33 +00:00
];
2023-11-27 01:17:53 +00:00
mainProgram = "dooit";
2023-03-07 13:31:52 +00:00
};
}