Skip to content

Commit f67c0fd

Browse files
authored
cpython: 3.13.12 -> 3.13.13; 3.14.3 -> 3.14.4; 3.15.0a7 -> 3.15.0a8 (#508075)
2 parents 452d59f + be45b7d commit f67c0fd

8 files changed

Lines changed: 43 additions & 35 deletions

File tree

pkgs/development/interpreters/python/default.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
sourceVersion = {
2121
major = "3";
2222
minor = "13";
23-
patch = "12";
23+
patch = "13";
2424
suffix = "";
2525
};
26-
hash = "sha256-KoTNMd2Njqiq/3XeZvwbSwEn3VeZqlCmSumjE4hbRZM=";
26+
hash = "sha256-Krkf9AF4PMymT3XRDIgulXvf1g4r9acvhCF5Nym3inE=";
2727
};
2828
};
2929

@@ -79,10 +79,10 @@
7979
sourceVersion = {
8080
major = "3";
8181
minor = "14";
82-
patch = "3";
82+
patch = "4";
8383
suffix = "";
8484
};
85-
hash = "sha256-qX1VSemtgf4XFZ7QLGh3StXSZscvjZoLWpw3H+hdkCs=";
85+
hash = "sha256-2SPFEwPjjiSRNvwb3zVo1W7LAyFO/e9IUWF209f6rvg=";
8686
inherit passthruFun;
8787
};
8888

@@ -92,9 +92,9 @@
9292
major = "3";
9393
minor = "15";
9494
patch = "0";
95-
suffix = "a7";
95+
suffix = "a8";
9696
};
97-
hash = "sha256-j1kMQot/DUBt+Si4Vzfno6+ijt3U0UGUEOqAloftHqc=";
97+
hash = "sha256-KPG2NYYJBC68yBSI7CRWlRn1CAS7B9wjzHB7KBsDHGk=";
9898
inherit passthruFun;
9999
};
100100

pkgs/development/python-modules/charset-normalizer/default.nix

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,16 @@
1212

1313
buildPythonPackage rec {
1414
pname = "charset-normalizer";
15-
version = "3.4.4";
15+
version = "3.4.7";
1616
pyproject = true;
1717

1818
src = fetchFromGitHub {
1919
owner = "jawah";
2020
repo = "charset_normalizer";
2121
tag = version;
22-
hash = "sha256-MtSBKG8bXUsgEPyXxMRBPPFI8mfuIETy6UVshe7yqGg=";
22+
hash = "sha256-dOdJ4f98smCYdskp3BwtQG6aOyK+2a73+x580FKRWDk=";
2323
};
2424

25-
postPatch = ''
26-
substituteInPlace _mypyc_hook/backend.py \
27-
--replace-fail "mypy>=1.4.1,<=1.18.2" "mypy"
28-
'';
29-
3025
build-system = [
3126
setuptools
3227
]

pkgs/development/python-modules/cryptography/vectors.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
lib,
33
buildPythonPackage,
44
cryptography,
5-
fetchpatch2,
65
uv-build,
76
}:
87

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

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5+
fetchpatch,
56
flit-scm,
67
pytestCheckHook,
78
pythonAtLeast,
89
pythonOlder,
9-
isPy313,
1010
typing-extensions,
1111
}:
1212

@@ -22,14 +22,19 @@ buildPythonPackage rec {
2222
hash = "sha256-3WInufN+Pp6vB/Gik6e8V1a34Dr/oiH3wDMB+2lHRMM=";
2323
};
2424

25-
# CPython fixed https://github.com/python/cpython/issues/141732 in
26-
# https://github.com/python/cpython/pull/141736, but exceptiongroup 1.3.1,
27-
# including its test suite, still matches the old repr behavior.
28-
# The CPython fix has only been backported to 3.13 so far, where it was
29-
# first included in version 3.13.12, so we only need to patch for 3.13
30-
# and 3.15+.
31-
# Upstream issue: https://github.com/agronholm/exceptiongroup/issues/154
32-
patches = lib.optional (isPy313 || pythonAtLeast "3.15") ./match-repr-fix.patch;
25+
patches = [
26+
# CPython fixed https://github.com/python/cpython/issues/141732 in
27+
# https://github.com/python/cpython/pull/141736 (backported to Python 3.13+),
28+
# but exceptiongroup 1.3.1, including its test suite, still matches the old
29+
# repr behavior.
30+
# Upstream issue: https://github.com/agronholm/exceptiongroup/issues/154
31+
# Upstream PR: https://github.com/agronholm/exceptiongroup/pull/155
32+
(fetchpatch {
33+
name = "match-repr-fix.patch";
34+
url = "https://github.com/agronholm/exceptiongroup/commit/0c6cfbf677f6b50df17311cfdad01e9ff17310aa.patch";
35+
hash = "sha256-EeYu1/JKYRDwdq8+n38RrdogipNzX0ate1trDs1Z3c0=";
36+
})
37+
];
3338

3439
build-system = [ flit-scm ];
3540

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,19 @@
55
setuptools,
66
mypy-extensions,
77
python,
8+
pytest,
89
}:
910

1011
buildPythonPackage rec {
1112
pname = "librt";
12-
version = "0.7.8";
13+
version = "0.9.0";
1314
pyproject = true;
1415

1516
src = fetchFromGitHub {
1617
owner = "mypyc";
1718
repo = "librt";
1819
tag = "v${version}";
19-
hash = "sha256-FlLilZQMsXAYfreBAfYoutCEww8IVoU7jjxvvJr8pTk=";
20+
hash = "sha256-RZGaOq8hmkwekCs1fKshDrx3vmHdJl/wI3IO9ZLH5rc=";
2021
};
2122

2223
# https://github.com/mypyc/librt/blob/v0.7.8/.github/workflows/buildwheels.yml#L90-L93
@@ -30,6 +31,7 @@ buildPythonPackage rec {
3031

3132
nativeCheckInputs = [
3233
mypy-extensions
34+
pytest
3335
];
3436

3537
checkPhase = ''

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

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
stdenv,
44
buildPythonPackage,
55
fetchFromGitHub,
6-
fetchpatch,
76
gitUpdater,
87
pythonAtLeast,
98
isPyPy,
@@ -34,7 +33,7 @@
3433

3534
buildPythonPackage rec {
3635
pname = "mypy";
37-
version = "1.19.1";
36+
version = "1.20.0";
3837
pyproject = true;
3938

4039
# relies on several CPython internals
@@ -44,7 +43,7 @@ buildPythonPackage rec {
4443
owner = "python";
4544
repo = "mypy";
4645
tag = "v${version}";
47-
hash = "sha256-REUJgYd00qr36hoHevkJEWK/+2hE/caymjD/asqa6eI=";
46+
hash = "sha256-QkUk7Y8mJSJtttfSiA7m4JL2Q4XFXEYs5irI8/FygaQ=";
4847
};
4948

5049
passthru.updateScript = gitUpdater {
@@ -104,16 +103,24 @@ buildPythonPackage rec {
104103
++ lib.concatAttrValues optional-dependencies;
105104

106105
disabledTests = [
107-
# fails with typing-extensions>=4.10
108-
# https://github.com/python/mypy/issues/17005
109-
"test_runtime_typing_objects"
106+
# A change to the base64 decoder in CPython 3.13.13 and 3.14.4 causes this
107+
# test to fail. At the time of writing, upstream skips the test.
108+
# Upstream issue: https://github.com/python/mypy/issues/21120
109+
# CPython issue: https://github.com/python/cpython/issues/145264
110+
"testAllBase64Features_librt_experimental"
111+
# https://github.com/python/mypy/issues/21120
112+
"testAllBase64Features_librt"
113+
# fails to import librt
114+
"test_diff_cache_produces_valid_json"
110115
]
111116
++ lib.optionals (pythonAtLeast "3.12") [
112117
# requires distutils
113118
"test_c_unit_test"
114119
];
115120

116121
disabledTestPaths = [
122+
# circular dependency on distutils
123+
"mypyc/test/test_external.py"
117124
# fails to find tyoing_extensions
118125
"mypy/test/testcmdline.py"
119126
"mypy/test/testdaemon.py"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
buildPythonPackage rec {
1616
pname = "pathspec";
17-
version = "0.12.1";
17+
version = "1.0.4";
1818
pyproject = true;
1919

2020
src = fetchPypi {
2121
inherit pname version;
22-
hash = "sha256-pILVFQOhqzOxxnpsOBOiaVPb3HHDHayu+ag4xOKfVxI=";
22+
hash = "sha256-AhDiroohqRN8DUcFeMsOWVr4ftqm6/Ev8XbxSgLg5kU=";
2323
};
2424

2525
nativeBuildInputs = [ flit-core ];

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626

2727
buildPythonPackage rec {
2828
pname = "pytest";
29-
version = "9.0.2";
29+
version = "9.0.3";
3030
pyproject = true;
3131

3232
src = fetchPypi {
3333
inherit pname version;
34-
hash = "sha256-dRhmUakr2JYR0dn8IPC0NF/YJ8QczVwpmoaKBdcO3xE=";
34+
hash = "sha256-uGraUIr4HRnt6yE8aBsdSCRsGpHTBMbIGkJ2dMF+uRw=";
3535
};
3636

3737
outputs = [

0 commit comments

Comments
 (0)