Skip to content

Commit 1c96136

Browse files
authored
python312Packages.prettytable: 3.11.0 -> 3.12.0; python312Packages.jupysql: 0.10.13 -> 0.10.16 (#359274)
2 parents 7251eb7 + 0e6166e commit 1c96136

File tree

4 files changed

+78
-55
lines changed

4 files changed

+78
-55
lines changed

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

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
lib,
3+
stdenv,
34
buildPythonPackage,
45
fetchFromGitHub,
56

@@ -36,15 +37,15 @@
3637

3738
buildPythonPackage rec {
3839
pname = "jupysql";
39-
version = "0.10.13";
40+
version = "0.10.16";
4041

4142
pyproject = true;
4243

4344
src = fetchFromGitHub {
4445
owner = "ploomber";
4546
repo = "jupysql";
46-
rev = "refs/tags/${version}";
47-
hash = "sha256-vNuMGHFkatJS5KjxaOBwZ7JolIDAdYqGq3JNKSV2fKE=";
47+
tag = version;
48+
hash = "sha256-TIISiGvspRG0d/4nEyi8Tiu0y80D1Rf8puDEkGIeA08=";
4849
};
4950

5051
pythonRelaxDeps = [ "sqlalchemy" ];
@@ -81,33 +82,35 @@ buildPythonPackage rec {
8182
psutil
8283
] ++ optional-dependencies.dev;
8384

84-
disabledTests = [
85-
# AttributeError: 'DataFrame' object has no attribute 'frame_equal'
86-
"test_resultset_polars_dataframe"
87-
# all of these are broken with later versions of duckdb; see
88-
# https://github.com/ploomber/jupysql/issues/1030
89-
"test_resultset_getitem"
90-
"test_resultset_dict"
91-
"test_resultset_len"
92-
"test_resultset_dicts"
93-
"test_resultset_dataframe"
94-
"test_resultset_csv"
95-
"test_resultset_str"
96-
"test_resultset_repr_html_when_feedback_is_2"
97-
"test_resultset_repr_html_with_reduced_feedback"
98-
"test_invalid_operation_error"
99-
"test_resultset_config_autolimit_dict"
100-
# fails due to strict warnings
101-
"test_calling_legacy_plotting_functions_displays_warning"
102-
];
85+
disabledTests =
86+
[
87+
# AttributeError: 'DataFrame' object has no attribute 'frame_equal'
88+
"test_resultset_polars_dataframe"
89+
# all of these are broken with later versions of duckdb; see
90+
# https://github.com/ploomber/jupysql/issues/1030
91+
"test_resultset_getitem"
92+
"test_resultset_dict"
93+
"test_resultset_len"
94+
"test_resultset_dicts"
95+
"test_resultset_dataframe"
96+
"test_resultset_csv"
97+
"test_resultset_str"
98+
"test_resultset_repr_html_when_feedback_is_2"
99+
"test_resultset_repr_html_with_reduced_feedback"
100+
"test_invalid_operation_error"
101+
"test_resultset_config_autolimit_dict"
102+
# fails due to strict warnings
103+
"test_calling_legacy_plotting_functions_displays_warning"
104+
]
105+
++ lib.optionals stdenv.hostPlatform.isDarwin [
106+
# Fatal Python error: Aborted (in matplotlib)
107+
"test_no_errors_with_stored_query"
108+
];
103109

104110
disabledTestPaths = [
105111
# require docker
106112
"src/tests/integration"
107113

108-
# require network access
109-
"src/tests/test_telemetry.py"
110-
111114
# want to download test data from the network
112115
"src/tests/test_parse.py"
113116
"src/tests/test_ggplot.py"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
setuptools,
77
setuptools-scm,
88
autoPatchelfHook,
9-
pytestCheckHook,
109
udev,
10+
pytestCheckHook,
1111
}:
1212

1313
buildPythonPackage rec {
@@ -51,7 +51,7 @@ buildPythonPackage rec {
5151
];
5252

5353
meta = {
54-
description = "Python wraper for libuuu";
54+
description = "Python wrapper for libuuu";
5555
homepage = "https://github.com/nxp-imx/mfgtools/tree/master/wrapper";
5656
license = lib.licenses.bsd3;
5757
maintainers = with lib.maintainers; [ GaetanLepage ];

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

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,31 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5+
6+
# build-system
57
hatch-vcs,
68
hatchling,
9+
10+
# dependencies
11+
wcwidth,
12+
13+
# tests
14+
coverage,
15+
pytest-cov-stub,
716
pytest-lazy-fixtures,
817
pytestCheckHook,
9-
pythonOlder,
10-
wcwidth,
1118
}:
1219

1320
buildPythonPackage rec {
1421
pname = "prettytable";
15-
version = "3.11.0";
22+
version = "3.12.0";
1623
pyproject = true;
1724

18-
disabled = pythonOlder "3.9";
19-
2025
src = fetchFromGitHub {
2126
owner = "jazzband";
2227
repo = "prettytable";
23-
rev = "refs/tags/${version}";
24-
hash = "sha256-LtphoD5gCMgWgDcFghinq9zjUD69XudEeGIToqqmVPs=";
28+
tag = version;
29+
hash = "sha256-RoBPmnuAOtTET898Gdm1zzPIst26GdCY5nU1PyJ+Nro=";
2530
};
2631

2732
build-system = [
@@ -32,17 +37,19 @@ buildPythonPackage rec {
3237
dependencies = [ wcwidth ];
3338

3439
nativeCheckInputs = [
40+
coverage
41+
pytest-cov-stub
3542
pytest-lazy-fixtures
3643
pytestCheckHook
3744
];
3845

3946
pythonImportsCheck = [ "prettytable" ];
4047

41-
meta = with lib; {
48+
meta = {
4249
description = "Display tabular data in a visually appealing ASCII table format";
4350
homepage = "https://github.com/jazzband/prettytable";
4451
changelog = "https://github.com/jazzband/prettytable/releases/tag/${version}";
45-
license = licenses.bsd3;
46-
maintainers = [ ];
52+
license = lib.licenses.bsd3;
53+
maintainers = with lib.maintainers; [ GaetanLepage ];
4754
};
4855
}

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

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,52 @@
11
{
22
lib,
3+
stdenv,
34
buildPythonPackage,
4-
click,
55
fetchFromGitHub,
6-
mock,
6+
7+
# build-system
8+
setuptools,
9+
10+
# dependencies
11+
click,
712
prettytable,
813
prompt-toolkit,
914
ptable,
1015
pygments,
11-
pytestCheckHook,
12-
pythonOlder,
1316
requests,
1417
rich,
18+
urllib3,
19+
20+
# tests
21+
mock,
22+
pytestCheckHook,
1523
sphinx,
1624
testtools,
1725
tkinter,
18-
urllib3,
1926
zeep,
2027
}:
2128

2229
buildPythonPackage rec {
2330
pname = "softlayer";
2431
version = "6.2.5";
25-
format = "setuptools";
26-
27-
disabled = pythonOlder "3.7";
32+
pyproject = true;
2833

2934
src = fetchFromGitHub {
30-
owner = pname;
35+
owner = "softlayer";
3136
repo = "softlayer-python";
32-
rev = "refs/tags/v${version}";
37+
tag = "v${version}";
3338
hash = "sha256-wDLMVonPUexoaZ60kRBILmr5l46yajzACozCp6uETGY=";
3439
};
3540

36-
postPatch = ''
37-
substituteInPlace setup.py \
38-
--replace "rich ==" "rich >="
39-
'';
41+
build-system = [
42+
setuptools
43+
];
4044

41-
propagatedBuildInputs = [
45+
pythonRelaxDeps = [
46+
"rich"
47+
];
48+
49+
dependencies = [
4250
click
4351
prettytable
4452
prompt-toolkit
@@ -66,18 +74,23 @@ buildPythonPackage rec {
6674
export HOME=$(mktemp -d)
6775
'';
6876

77+
pytestFlagsArray = lib.optionals stdenv.hostPlatform.isDarwin [
78+
# SoftLayer.exceptions.TransportError: TransportError(0): ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))
79+
"--deselect=tests/CLI/modules/hardware/hardware_basic_tests.py::HardwareCLITests"
80+
];
81+
6982
disabledTestPaths = [
7083
# Test fails with ConnectionError trying to connect to api.softlayer.com
7184
"tests/transports/soap_tests.py.unstable"
7285
];
7386

7487
pythonImportsCheck = [ "SoftLayer" ];
7588

76-
meta = with lib; {
89+
meta = {
7790
description = "Python libraries that assist in calling the SoftLayer API";
7891
homepage = "https://github.com/softlayer/softlayer-python";
7992
changelog = "https://github.com/softlayer/softlayer-python/releases/tag/v${version}";
80-
license = licenses.mit;
81-
maintainers = with maintainers; [ onny ];
93+
license = lib.licenses.mit;
94+
maintainers = with lib.maintainers; [ onny ];
8295
};
8396
}

0 commit comments

Comments
 (0)