Skip to content

Commit 0546660

Browse files
authored
dooit: 2.2.0 -> 3.0.2 (#354955)
2 parents 3e45072 + 4841b84 commit 0546660

File tree

1 file changed

+31
-30
lines changed

1 file changed

+31
-30
lines changed

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

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,53 +5,54 @@
55
python311,
66
testers,
77
nix-update-script,
8+
extraPackages ? [ ],
89
}:
910
let
1011
python3 = python311;
1112
in
1213
python3.pkgs.buildPythonApplication rec {
1314
pname = "dooit";
14-
version = "2.2.0";
15+
version = "3.0.2";
1516
pyproject = true;
1617

1718
src = fetchFromGitHub {
18-
owner = "kraanzu";
19+
owner = "dooit-org";
1920
repo = "dooit";
20-
rev = "v${version}";
21-
hash = "sha256-GtXRzj+o+FClleh73kqelk0JrSyafZhf847lX1BiS9k=";
21+
rev = "refs/tags/v${version}";
22+
hash = "sha256-DPmCADFduGc5n+6q9zl0f4x9C6RmzLvBeYh2j0ZSpH0=";
2223
};
2324

2425
build-system = with python3.pkgs; [ poetry-core ];
2526

2627
pythonRelaxDeps = [
2728
"tzlocal"
29+
"textual"
30+
"sqlalchemy"
2831
];
2932

30-
propagatedBuildInputs = with python3.pkgs; [
31-
appdirs
32-
pyperclip
33-
python-dateutil
34-
pyyaml
35-
(textual.overridePythonAttrs (oldAttrs: {
36-
version = "0.47.1";
37-
src = fetchFromGitHub {
38-
owner = "Textualize";
39-
repo = "textual";
40-
rev = "refs/tags/v0.47.1";
41-
hash = "sha256-RFaZKQ+0o6ZvfZxx95a1FjSHVJ0VOIAfzkdxYQXYBKU=";
42-
};
43-
disabledTests = [
44-
"test_tracked_slugs"
45-
"test_textual_env_var"
46-
"test_register_language"
47-
"test_register_language_existing_language"
48-
];
49-
}))
50-
tzlocal
51-
];
33+
propagatedBuildInputs =
34+
with python3.pkgs;
35+
[
36+
pyperclip
37+
textual
38+
pyyaml
39+
python-dateutil
40+
sqlalchemy
41+
platformdirs
42+
tzlocal
43+
click
44+
]
45+
++ extraPackages;
46+
47+
# /homeless-shelter
48+
preBuild = ''
49+
export HOME=$(mktemp -d)
50+
'';
5251

53-
# No tests available
54-
doCheck = false;
52+
checkInputs = with python3.pkgs; [
53+
pytestCheckHook
54+
faker
55+
];
5556

5657
passthru = {
5758
tests.version = testers.testVersion {
@@ -64,8 +65,8 @@ python3.pkgs.buildPythonApplication rec {
6465

6566
meta = with lib; {
6667
description = "TUI todo manager";
67-
homepage = "https://github.com/kraanzu/dooit";
68-
changelog = "https://github.com/kraanzu/dooit/blob/v${version}/CHANGELOG.md";
68+
homepage = "https://github.com/dooit-org/dooit";
69+
changelog = "https://github.com/dooit-org/dooit/blob/v${version}/CHANGELOG.md";
6970
license = licenses.mit;
7071
maintainers = with maintainers; [
7172
khaneliman

0 commit comments

Comments
 (0)