Merge pull request #215401 from mweinelt/python-3.10.10-3.11.2

python310: 3.10.9 -> 3.10.10; python311: 3.11.1 -> 3.11.2

authored by

Martin Weinelt and committed by
GitHub
d87b0e29 29c2637d

+38 -32
+3 -3
pkgs/development/interpreters/python/cpython/default.nix
··· 30 30 , pkgsHostHost 31 31 , pkgsTargetTarget 32 32 , sourceVersion 33 - , sha256 33 + , hash 34 34 , passthruFun 35 35 , bash 36 36 , stripConfig ? false ··· 215 215 216 216 src = fetchurl { 217 217 url = with sourceVersion; "https://www.python.org/ftp/python/${major}.${minor}.${patch}/Python-${version}.tar.xz"; 218 - inherit sha256; 218 + inherit hash; 219 219 }; 220 220 221 221 prePatch = optionalString stdenv.isDarwin '' ··· 235 235 url = "https://github.com/python/cpython/commit/3fae04b10e2655a20a3aadb5e0d63e87206d0c67.diff"; 236 236 revert = true; 237 237 excludes = [ "Misc/NEWS.d/*" ]; 238 - sha256 = "sha256-PmkXf2D9trtW1gXZilRIWgdg2Y47JfELq1z4DuG3wJY="; 238 + hash = "sha256-PmkXf2D9trtW1gXZilRIWgdg2Y47JfELq1z4DuG3wJY="; 239 239 }) 240 240 ] ++ [ 241 241 # Disable the use of ldconfig in ctypes.util.find_library (since
+28 -27
pkgs/development/interpreters/python/default.nix
··· 117 117 }; 118 118 119 119 sources = { 120 - python39 = { 120 + python310 = { 121 121 sourceVersion = { 122 122 major = "3"; 123 - minor = "9"; 124 - patch = "16"; 123 + minor = "10"; 124 + patch = "10"; 125 125 suffix = ""; 126 126 }; 127 - sha256 = "sha256-It3cCZJG3SdgZlVh6K23OU6gzEOnJoTGSA+TgPd4ZDk="; 127 + hash = "sha256-BBnpCFv1G3pnIAmz9Q2/GFms3xi6cl0OwZqlyFA/DqM="; 128 128 }; 129 - python310 = { 129 + 130 + python311 = { 130 131 sourceVersion = { 131 132 major = "3"; 132 - minor = "10"; 133 - patch = "9"; 133 + minor = "11"; 134 + patch = "2"; 134 135 suffix = ""; 135 136 }; 136 - sha256 = "sha256-WuA+MIJgFkuro5kh/bTb+ObQPYI1qTnUWCsz8LXkaoM="; 137 + hash = "sha256-KeS49fFlhUKowT4t0nc1jJxI8rL3MYZS7xZ15AK50q8="; 137 138 }; 138 139 }; 139 140 ··· 147 148 patch = "18"; 148 149 suffix = ".6"; # ActiveState's Python 2 extended support 149 150 }; 150 - sha256 = "sha256-+I0QOBkuTHMIQz71lgNn1X1vjPsjJMtFbgC0xcGTwWY="; 151 + hash = "sha256-+I0QOBkuTHMIQz71lgNn1X1vjPsjJMtFbgC0xcGTwWY="; 151 152 inherit (darwin) configd; 152 153 inherit passthruFun; 153 154 }; ··· 160 161 patch = "16"; 161 162 suffix = ""; 162 163 }; 163 - sha256 = "sha256-2F27N3QTJHPYCB3LFY80oQzK16kLlsflDqS7YfXORWI="; 164 + hash = "sha256-2F27N3QTJHPYCB3LFY80oQzK16kLlsflDqS7YfXORWI="; 164 165 inherit (darwin) configd; 165 166 inherit passthruFun; 166 167 }; 167 168 168 - python39 = callPackage ./cpython ({ 169 + python39 = callPackage ./cpython { 169 170 self = __splicedPackages.python39; 171 + sourceVersion = { 172 + major = "3"; 173 + minor = "9"; 174 + patch = "16"; 175 + suffix = ""; 176 + }; 177 + hash = "sha256-It3cCZJG3SdgZlVh6K23OU6gzEOnJoTGSA+TgPd4ZDk="; 170 178 inherit (darwin) configd; 171 179 inherit passthruFun; 172 - } // sources.python39); 180 + }; 173 181 174 182 python310 = callPackage ./cpython ({ 175 183 self = __splicedPackages.python310; ··· 177 185 inherit passthruFun; 178 186 } // sources.python310); 179 187 180 - python311 = callPackage ./cpython { 188 + python311 = callPackage ./cpython ({ 181 189 self = __splicedPackages.python311; 182 - sourceVersion = { 183 - major = "3"; 184 - minor = "11"; 185 - patch = "1"; 186 - suffix = ""; 187 - }; 188 - sha256 = "sha256-hYeRkvLP/VbLFsCSkFlJ6/Pl45S392RyNSljeQHftY8="; 189 190 inherit (darwin) configd; 190 191 inherit passthruFun; 191 - }; 192 + } // sources.python311); 192 193 193 194 python312 = callPackage ./cpython { 194 195 self = __splicedPackages.python312; ··· 198 199 patch = "0"; 199 200 suffix = "a5"; 200 201 }; 201 - sha256 = "sha256-1m73o0L+OjVvnO47uXrcHl+0hA9rbP994P991JX4Mjs="; 202 + hash = "sha256-1m73o0L+OjVvnO47uXrcHl+0hA9rbP994P991JX4Mjs="; 202 203 inherit (darwin) configd; 203 204 inherit passthruFun; 204 205 }; ··· 241 242 patch = "11"; 242 243 }; 243 244 244 - sha256 = "sha256-ERevtmgx2k6m852NIIR4enRon9AineC+MB+e2bJVCTw="; 245 + hash = "sha256-ERevtmgx2k6m852NIIR4enRon9AineC+MB+e2bJVCTw="; 245 246 pythonVersion = "2.7"; 246 247 db = db.override { dbmSupport = !stdenv.isDarwin; }; 247 248 python = __splicedPackages.pythonInterpreters.pypy27_prebuilt; ··· 258 259 patch = "11"; 259 260 }; 260 261 261 - sha256 = "sha256-sPMWb7Klqt/VzrnbXN1feSmg7MygK0omwNrgSS98qOo="; 262 + hash = "sha256-sPMWb7Klqt/VzrnbXN1feSmg7MygK0omwNrgSS98qOo="; 262 263 pythonVersion = "3.9"; 263 264 db = db.override { dbmSupport = !stdenv.isDarwin; }; 264 265 python = __splicedPackages.pypy27; ··· 270 271 pypy38 = __splicedPackages.pypy39.override { 271 272 self = __splicedPackages.pythonInterpreters.pypy38; 272 273 pythonVersion = "3.8"; 273 - sha256 = "sha256-TWdpv8pzc06GZv1wUDt86wam4lkRDmFzMbs4mcpOYFg="; 274 + hash = "sha256-TWdpv8pzc06GZv1wUDt86wam4lkRDmFzMbs4mcpOYFg="; 274 275 }; 275 276 276 277 pypy37 = throw "pypy37 has been removed from nixpkgs since it is no longer supported upstream"; # Added 2023-01-04 ··· 284 285 patch = "11"; 285 286 }; 286 287 287 - sha256 = { 288 + hash = { 288 289 aarch64-linux = "sha256-6pJNod7+kyXvdg4oiwT5hGFOQFWA9TIetqXI9Tm9QVo="; 289 290 x86_64-linux = "sha256-uo7ZWKkFwHNaTP/yh1wlCJlU3AIOCH2YKw/6W52jFs0="; 290 291 aarch64-darwin = "sha256-zFaWq0+TzTSBweSZC13t17pgrAYC+hiQ02iImmxb93E="; ··· 302 303 minor = "3"; 303 304 patch = "11"; 304 305 }; 305 - sha256 = { 306 + hash = { 306 307 aarch64-linux = "sha256-CRddxlLtiV2Y6a1j0haBK/PufjmNkAqb+espBrqDArk="; 307 308 x86_64-linux = "sha256-1QYXLKEQcSdBdddOnFgcMWZDLQF5sDZHDjuejSDq5YE="; 308 309 aarch64-darwin = "sha256-ka11APGjlTHb76CzRaPc/5J/+ZcWVOjS6e98WuMR9X4=";
+3 -2
pkgs/development/interpreters/python/tests.nix
··· 43 43 # Use virtualenv from a Nix env. 44 44 nixenv-virtualenv = rec { 45 45 env = runCommand "${python.name}-virtualenv" {} '' 46 - ${pythonVirtualEnv.interpreter} -m virtualenv $out 46 + ${pythonVirtualEnv.interpreter} -m virtualenv venv 47 + mv venv $out 47 48 ''; 48 49 interpreter = "${env}/bin/${python.executable}"; 49 50 is_venv = "False"; ··· 173 174 } 174 175 ) {}; 175 176 pythonWithRequests = requests.pythonModule.withPackages (ps: [ requests ]); 176 - in 177 + in lib.optionalAttrs stdenv.isLinux 177 178 { 178 179 condaExamplePackage = runCommand "import-requests" {} '' 179 180 ${pythonWithRequests.interpreter} -c "import requests" > $out
+2
pkgs/development/python-modules/asgiref/default.nix
··· 35 35 "test_multiprocessing" 36 36 ]; 37 37 38 + __darwinAllowLocalNetworking = true; 39 + 38 40 pythonImportsCheck = [ "asgiref" ]; 39 41 40 42 meta = with lib; {
+2
pkgs/development/python-modules/ephemeral-port-reserve/default.nix
··· 29 29 "test_fqdn" 30 30 ]; 31 31 32 + __darwinAllowLocalNetworking = true; 33 + 32 34 pythonImportsCheck = [ 33 35 "ephemeral_port_reserve" 34 36 ];