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