Skip to content

Commit c378776

Browse files
authored
python312Packages.textual: 0.82.0 -> 0.86.1, harlequin: 1.25.0 -> 1.25.2 (#356997)
2 parents f10fc70 + f673b77 commit c378776

File tree

5 files changed

+118
-72
lines changed

5 files changed

+118
-72
lines changed

pkgs/by-name/ha/harlequin/package.nix

Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,48 @@
66
testers,
77
nix-update-script,
88
versionCheckHook,
9+
glibcLocales,
910
withPostgresAdapter ? true,
1011
withBigQueryAdapter ? true,
1112
}:
1213
python3Packages.buildPythonApplication rec {
1314
pname = "harlequin";
14-
version = "1.25.0";
15+
version = "1.25.2";
1516
pyproject = true;
1617

1718
src = fetchFromGitHub {
1819
owner = "tconbeer";
1920
repo = "harlequin";
2021
rev = "refs/tags/v${version}";
21-
hash = "sha256-iRl91GqYigD6t0aVVShBg835yhlPxgfZcQCdAGUoc1k=";
22+
hash = "sha256-ov9pMvFzJAMfOM7JeSgnp6dZ424GiRaH7W5OCKin9Jk=";
2223
};
2324

24-
build-system = with python3Packages; [
25-
poetry-core
26-
];
25+
pythonRelaxDeps = [ "textual" ];
26+
27+
build-system = with python3Packages; [ poetry-core ];
28+
29+
nativeBuildInputs = [ glibcLocales ];
2730

2831
dependencies =
2932
with python3Packages;
3033
[
31-
textual
32-
textual-fastdatatable
33-
textual-textarea
3434
click
35-
rich-click
3635
duckdb
37-
sqlfmt
38-
platformdirs
3936
importlib-metadata
40-
tomlkit
41-
questionary
4237
numpy
4338
packaging
39+
platformdirs
40+
questionary
41+
rich-click
42+
sqlfmt
43+
textual
44+
textual-fastdatatable
45+
textual-textarea
46+
tomlkit
4447
]
4548
++ lib.optionals withPostgresAdapter [ harlequin-postgres ]
4649
++ lib.optionals withBigQueryAdapter [ harlequin-bigquery ];
4750

48-
pythonRelaxDeps = [
49-
"textual"
50-
];
51-
5251
pythonImportsCheck = [
5352
"harlequin"
5453
"harlequin_duckdb"
@@ -60,17 +59,37 @@ python3Packages.buildPythonApplication rec {
6059
updateScript = nix-update-script { };
6160
};
6261

63-
nativeCheckInputs = [
64-
versionCheckHook
62+
preCheck = ''
63+
export HOME=$(mktemp -d)
64+
'';
65+
66+
nativeCheckInputs =
67+
[
68+
versionCheckHook
69+
]
70+
++ (with python3Packages; [
71+
pytest-asyncio
72+
pytestCheckHook
73+
]);
74+
75+
disabledTests = [
76+
# Tests require network access
77+
"test_connect_extensions"
78+
"test_connect_prql"
79+
];
80+
81+
disabledTestPaths = [
82+
# Tests requires more setup
83+
"tests/functional_tests/"
6584
];
6685

6786
meta = {
6887
description = "The SQL IDE for Your Terminal";
6988
homepage = "https://harlequin.sh";
70-
mainProgram = "harlequin";
89+
changelog = "https://github.com/tconbeer/harlequin/releases/tag/v${version}";
7190
license = lib.licenses.mit;
91+
mainProgram = "harlequin";
7292
maintainers = with lib.maintainers; [ pcboy ];
7393
platforms = lib.platforms.unix;
74-
changelog = "https://github.com/tconbeer/harlequin/releases/tag/v${version}";
7594
};
7695
}

pkgs/development/python-modules/sqlfmt/default.nix

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,39 @@
11
{
22
lib,
3+
black,
34
buildPythonPackage,
4-
fetchPypi,
5+
click,
56
fetchFromGitHub,
7+
fetchPypi,
8+
gitpython,
69
importlib-metadata,
7-
black,
8-
poetry-core,
9-
click,
1010
jinja2,
1111
platformdirs,
12+
poetry-core,
13+
pytest-asyncio,
14+
pytestCheckHook,
15+
pythonOlder,
1216
tomli,
1317
tqdm,
14-
gitpython,
1518
}:
1619

1720
buildPythonPackage rec {
1821
pname = "sqlfmt";
1922
version = "0.23.3";
2023
pyproject = true;
2124

25+
disabled = pythonOlder "3.9";
26+
2227
src = fetchFromGitHub {
2328
owner = "tconbeer";
2429
repo = "sqlfmt";
2530
rev = "refs/tags/v${version}";
2631
hash = "sha256-kbluj29P1HwTaCYv1Myslak9s8FFm2e/eHdGgi3H4i0=";
2732
};
2833

29-
build-system = [
30-
poetry-core
31-
];
34+
pythonRelaxDeps = [ "platformdirs" ];
35+
36+
build-system = [ poetry-core ];
3237

3338
dependencies = [
3439
click
@@ -40,25 +45,26 @@ buildPythonPackage rec {
4045
];
4146

4247
optional-dependencies = {
43-
jinjafmt = [
44-
black
45-
];
46-
sqlfmt_primer = [
47-
gitpython
48-
];
48+
jinjafmt = [ black ];
49+
sqlfmt_primer = [ gitpython ];
4950
};
5051

51-
pythonRelaxDeps = [
52-
"platformdirs"
53-
];
52+
nativeCheckInputs = [
53+
pytest-asyncio
54+
pytestCheckHook
55+
] ++ lib.flatten (builtins.attrValues optional-dependencies);
5456

55-
pythonImportsCheck = [
56-
"sqlfmt"
57-
];
57+
preCheck = ''
58+
export HOME=$(mktemp -d)
59+
export PATH="$PATH:$out/bin";
60+
'';
61+
62+
pythonImportsCheck = [ "sqlfmt" ];
5863

5964
meta = {
6065
description = "Sqlfmt formats your dbt SQL files so you don't have to";
6166
homepage = "https://github.com/tconbeer/sqlfmt";
67+
changelog = "https://github.com/tconbeer/sqlfmt/blob/${src.rev}/CHANGELOG.md";
6268
license = lib.licenses.asl20;
6369
maintainers = with lib.maintainers; [ pcboy ];
6470
mainProgram = "sqlfmt";

pkgs/development/python-modules/textual-fastdatatable/default.nix

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,63 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchPypi,
4+
fetchFromGitHub,
55
poetry-core,
66
pyarrow,
77
pytz,
88
textual,
99
tzdata,
10+
pythonOlder,
1011
polars,
12+
pytest-asyncio,
13+
pytest-textual-snapshot,
14+
pytestCheckHook,
1115
}:
1216

1317
buildPythonPackage rec {
1418
pname = "textual-fastdatatable";
15-
version = "0.9.0";
19+
version = "0.10.0";
1620
pyproject = true;
1721

18-
src = fetchPypi {
19-
pname = "textual_fastdatatable";
20-
inherit version;
21-
hash = "sha256-AS3SiwetCHkCMu8H81xbp5QvN/2GCvMlWgU4qZKvBRU=";
22+
disabled = pythonOlder "3.8";
23+
24+
src = fetchFromGitHub {
25+
owner = "tconbeer";
26+
repo = "textual-fastdatatable";
27+
rev = "refs/tags/v${version}";
28+
hash = "sha256-r1evN69etFn21TkXPLuAh1OxIsurDDyPyYOKQR5uUos=";
2229
};
2330

24-
build-system = [
25-
poetry-core
26-
];
31+
build-system = [ poetry-core ];
2732

2833
dependencies = [
2934
pyarrow
3035
pytz
3136
textual
3237
tzdata
33-
];
38+
] ++ textual.optional-dependencies.syntax;
3439

3540
optional-dependencies = {
36-
polars = [
37-
polars
38-
];
41+
polars = [ polars ];
3942
};
4043

41-
pythonImportsCheck = [
42-
"textual_fastdatatable"
44+
nativeCheckInputs = [
45+
pytest-asyncio
46+
pytest-textual-snapshot
47+
pytestCheckHook
48+
] ++ lib.flatten (builtins.attrValues optional-dependencies);
49+
50+
pythonImportsCheck = [ "textual_fastdatatable" ];
51+
52+
disabledTestPaths = [
53+
# Tests are comparing CLI output
54+
"tests/snapshot_tests/test_snapshots.py"
4355
];
4456

4557
meta = {
4658
description = "A performance-focused reimplementation of Textual's DataTable widget, with a pluggable data storage backend";
47-
homepage = "https://pypi.org/project/textual-fastdatatable/";
59+
homepage = "https://github.com/tconbeer/textual-fastdatatable";
60+
changelog = "https://github.com/tconbeer/textual-fastdatatable/releases/tag/v${version}";
4861
license = lib.licenses.mit;
4962
maintainers = with lib.maintainers; [ pcboy ];
5063
};

pkgs/development/python-modules/textual-textarea/default.nix

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,47 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchPypi,
4+
fetchFromGitHub,
55
poetry-core,
66
pyperclip,
7+
pytest-asyncio,
8+
pytestCheckHook,
9+
pythonOlder,
710
textual,
811
}:
912

1013
buildPythonPackage rec {
1114
pname = "textual-textarea";
12-
version = "0.14.2";
15+
version = "0.14.4";
1316
pyproject = true;
1417

15-
src = fetchPypi {
16-
pname = "textual_textarea";
17-
inherit version;
18-
hash = "sha256-AJU7BBoev6pBrLhvbfF4I7l+E8YnO5jCD5OIsNf6NW0=";
18+
disabled = pythonOlder "3.8";
19+
20+
src = fetchFromGitHub {
21+
owner = "tconbeer";
22+
repo = "textual-textarea";
23+
rev = "refs/tags/v${version}";
24+
hash = "sha256-tmbSCU1VgxR9aXG22UVpweD71dVmhKSRBTDm1Gf33jM=";
1925
};
2026

21-
build-system = [
22-
poetry-core
23-
];
27+
build-system = [ poetry-core ];
2428

2529
dependencies = [
2630
pyperclip
2731
textual
28-
];
32+
] ++ textual.optional-dependencies.syntax;
2933

30-
pythonImportsCheck = [
31-
"textual_textarea"
34+
nativeCheckInputs = [
35+
pytest-asyncio
36+
pytestCheckHook
3237
];
3338

39+
pythonImportsCheck = [ "textual_textarea" ];
40+
3441
meta = {
3542
description = "A text area (multi-line input) with syntax highlighting for Textual";
36-
homepage = "https://pypi.org/project/textual-textarea/";
43+
homepage = "https://github.com/tconbeer/textual-textarea";
44+
changelog = "https://github.com/tconbeer/textual-textarea/releases/tag/v${version}";
3745
license = lib.licenses.mit;
3846
maintainers = with lib.maintainers; [ pcboy ];
3947
};

pkgs/development/python-modules/textual/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
buildPythonPackage rec {
2222
pname = "textual";
23-
version = "0.82.0";
23+
version = "0.86.1";
2424
pyproject = true;
2525

2626
disabled = pythonOlder "3.8";
@@ -29,7 +29,7 @@ buildPythonPackage rec {
2929
owner = "Textualize";
3030
repo = "textual";
3131
rev = "refs/tags/v${version}";
32-
hash = "sha256-belpoXQ+CkTchK+FjI/Ur8v4cNgzX39xLdNfPCwaU6E=";
32+
hash = "sha256-5msCFv79nAmoaP9gZxV3DXMLTyVlSFb+qyA5jHWwc50=";
3333
};
3434

3535
build-system = [ poetry-core ];

0 commit comments

Comments
 (0)