8000 python-qt: 3.3.0 -> 3.4.2 · mfrischknecht/nixpkgs@2a2327f · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a2327f

Browse files
committed
python-qt: 3.3.0 -> 3.4.2
`python-qt` v. 3.3.0 wasn't compatible with Python 3.11 yet (it contained include statements for header files that were removed by 3.11 [1] and used a python tuple field that was replaced through a dedicated getter function [2]). Switching to version 3.4.2 also means we can remove the `remove-unneeded-pydebug-include.patch`, as it has since been merged. [1]: https://docs.python.org/3.11/whatsnew/3.11.html > The non-limited API files cellobject.h, classobject.h, code.h, context.h, > funcobject.h, genobject.h and longintrepr.h have been moved to the Include/cpython > directory. Moreover, the eval.h header file was removed. These files must not be > included directly, as they are already included in Python.h: Include Files. > If they have been included directly, consider including Python.h instead. [2]: python/cpython#94936 (comment)
1 parent 6c01c51 commit 2a2327f

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

pkgs/development/libraries/python-qt/default.nix

-12Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,19 @@
44

55
stdenv.mkDerivation rec {
66
pname = "python-qt";
7-
version = "3.3.0";
7+
version = "3.4.2";
88

99
src = fetchFromGitHub {
1010
owner = "MeVisLab";
1111
repo = "pythonqt";
1212
rev = "v${version}";
13-
hash = "sha256-zbQ6X4Q2/QChaw3GAz/aVBj2JjWEz52YuPuHbBz935k=";
13+
hash = "sha256-xJYOD07ACOKtY3psmfHNSCjm6t0fr8JU9CrL0w5P5G0=";
1414
};
1515

16-
patches = [
17-
(fetchpatch {
18-
name = "remove-unneeded-pydebug-include.patch";
19-
url = "https://github.com/MeVisLab/pythonqt/commit/a93104dea4d9c79351276ec963e931ca617625ec.patch";
20-
includes = [ "src/PythonQt.cpp" ];
21-
hash = "sha256-Tc4+6dIdvrda/z3Nz1s9Xz+ZWJLV2BQh8i552UynSI0=";
22-
})
23-
];
24-
2516
# https://github.com/CsoundQt/CsoundQt/blob/develop/BUILDING.md#pythonqt
2617
postPatch = ''
2718
substituteInPlace build/python.prf \
28-
--replace "unix:PYTHON_VERSION=2.7" "unix:PYTHON_VERSION=${python.pythonVersion}"
19+
--replace "PYTHON_VERSION=2.7" "PYTHON_VERSION=${python.pythonVersion}"
2920
'';
3021

3122
hardeningDisable = [ "all" ];

0 commit comments

Comments
 (0)
0