Merge pull request #325601 from r-ryantm/auto-update/python312Packages.craft-providers

authored by Sandro and committed by GitHub 6af55cb9 24cefb01

+152 -63
+17 -14
pkgs/by-name/ch/charmcraft/package.nix
··· 22 22 postPatch = '' 23 23 substituteInPlace setup.py \ 24 24 --replace-fail 'version=determine_version()' 'version="${version}"' 25 + 26 + substituteInPlace charmcraft/env.py \ 27 + --replace-fail "distutils.util" "setuptools.dist" 25 28 ''; 26 29 27 30 propagatedBuildInputs = with python3Packages; [ ··· 44 47 urllib3 45 48 ]; 46 49 47 - nativeBuildInputs = with python3Packages; [ 48 - setuptools 49 - ]; 50 + nativeBuildInputs = with python3Packages; [ setuptools ]; 50 51 51 - pythonRelaxDeps = [ 52 - "urllib3" 53 - ]; 52 + pythonRelaxDeps = [ "urllib3" ]; 54 53 55 - nativeCheckInputs = with python3Packages; [ 56 - pyfakefs 57 - pytest-check 58 - pytest-mock 59 - pytest-subprocess 60 - pytestCheckHook 61 - responses 62 - ] ++ [ git ]; 54 + nativeCheckInputs = 55 + with python3Packages; 56 + [ 57 + pyfakefs 58 + pytest-check 59 + pytest-mock 60 + pytest-subprocess 61 + pytestCheckHook 62 + responses 63 + setuptools 64 + ] 65 + ++ [ git ]; 63 66 64 67 preCheck = '' 65 68 mkdir -p check-phase
+20 -14
pkgs/by-name/ro/rockcraft/package.nix
··· 1 - { lib 2 - , python3Packages 3 - , fetchFromGitHub 4 - , dpkg 5 - , nix-update-script 6 - , python3 1 + { 2 + lib, 3 + python3Packages, 4 + fetchFromGitHub, 5 + dpkg, 6 + nix-update-script, 7 + python3, 7 8 }: 8 9 9 10 python3Packages.buildPythonApplication rec { ··· 20 21 postPatch = '' 21 22 substituteInPlace rockcraft/__init__.py \ 22 23 --replace-fail "dev" "${version}" 24 + 25 + substituteInPlace rockcraft/utils.py \ 26 + --replace-fail "distutils.util" "setuptools.dist" 23 27 ''; 24 28 25 29 propagatedBuildInputs = with python3Packages; [ ··· 28 32 spdx-lookup 29 33 ]; 30 34 31 - nativeCheckInputs = with python3Packages; [ 32 - pytest-check 33 - pytest-mock 34 - pytest-subprocess 35 - pytestCheckHook 36 - ] ++ [ 37 - dpkg 38 - ]; 35 + nativeCheckInputs = 36 + with python3Packages; 37 + [ 38 + pytest-check 39 + pytest-mock 40 + pytest-subprocess 41 + pytestCheckHook 42 + setuptools 43 + ] 44 + ++ [ dpkg ]; 39 45 40 46 preCheck = '' 41 47 mkdir -p check-phase
+2 -10
pkgs/by-name/sn/snapcraft/os-platform.patch
··· 1 1 diff --git a/snapcraft/utils.py b/snapcraft/utils.py 2 - index 511effe2..4af5a029 100644 2 + index 999a64ec..4f38b4cd 100644 3 3 --- a/snapcraft/utils.py 4 4 +++ b/snapcraft/utils.py 5 - @@ -15,6 +15,7 @@ 6 - # along with this program. If not, see <http://www.gnu.org/licenses/>. 7 - 8 - """Utilities for snapcraft.""" 9 - + 10 - import multiprocessing 11 - import os 12 - import pathlib 13 - @@ -91,7 +92,7 @@ def get_os_platform( 5 + @@ -94,7 +94,7 @@ def get_os_platform( 14 6 release = platform.release() 15 7 machine = platform.machine() 16 8
+22 -19
pkgs/by-name/sn/snapcraft/package.nix
··· 11 11 }: 12 12 python3Packages.buildPythonApplication rec { 13 13 pname = "snapcraft"; 14 - version = "8.2.5"; 14 + version = "8.2.12"; 15 15 16 16 pyproject = true; 17 17 ··· 24 24 owner = "canonical"; 25 25 repo = "snapcraft"; 26 26 rev = "refs/tags/${version}"; 27 - hash = "sha256-+1Gzseuq402m5FvlRAGXl7Lsy2VnRmd1cXNXhkMDDDE="; 27 + hash = "sha256-1PwIbMweeYGi+jLfhFB3LYThqaN2VW7zdyzjD1m57ow="; 28 28 }; 29 29 30 30 patches = [ ··· 67 67 substituteInPlace snapcraft/elf/elf_utils.py \ 68 68 --replace-fail 'arch_linker_path = Path(arch_config.dynamic_linker)' \ 69 69 'return str(Path("${glibc}/lib/ld-linux-x86-64.so.2"))' 70 + 71 + substituteInPlace snapcraft_legacy/internal/xattrs.py \ 72 + --replace-fail 'distutils.util' 'setuptools.dist' 70 73 ''; 71 74 72 75 buildInputs = [ makeWrapper ]; ··· 104 107 tinydb 105 108 ]; 106 109 107 - nativeBuildInputs = with python3Packages; [ 108 - setuptools 109 - ]; 110 + nativeBuildInputs = with python3Packages; [ setuptools ]; 110 111 111 112 pythonRelaxDeps = [ 112 113 "docutils" ··· 119 120 wrapProgram $out/bin/snapcraft --prefix PATH : ${squashfsTools}/bin 120 121 ''; 121 122 122 - nativeCheckInputs = with python3Packages; [ 123 - pytest-check 124 - pytest-cov 125 - pytest-mock 126 - pytest-subprocess 127 - pytestCheckHook 128 - responses 129 - ] ++ [ 130 - git 131 - squashfsTools 132 - ]; 123 + nativeCheckInputs = 124 + with python3Packages; 125 + [ 126 + pytest-check 127 + pytest-cov 128 + pytest-mock 129 + pytest-subprocess 130 + pytestCheckHook 131 + responses 132 + setuptools 133 + ] 134 + ++ [ 135 + git 136 + squashfsTools 137 + ]; 133 138 134 139 preCheck = '' 135 140 mkdir -p check-phase ··· 160 165 "test_snap_command_fallback" 161 166 "test_validate_architectures_supported" 162 167 "test_validate_architectures_unsupported" 163 - ] ++ lib.optionals stdenv.isAarch64 [ 164 - "test_load_project" 165 - ]; 168 + ] ++ lib.optionals stdenv.isAarch64 [ "test_load_project" ]; 166 169 167 170 disabledTestPaths = [ 168 171 "tests/unit/commands/test_remote.py"
+2 -2
pkgs/development/python-modules/craft-providers/default.nix
··· 22 22 23 23 buildPythonPackage rec { 24 24 pname = "craft-providers"; 25 - version = "1.24.0"; 25 + version = "1.24.1"; 26 26 27 27 pyproject = true; 28 28 ··· 30 30 owner = "canonical"; 31 31 repo = "craft-providers"; 32 32 rev = "refs/tags/${version}"; 33 - hash = "sha256-CkaJ8taTsnBpCffe/Eu4/FGpMwKcg3yeLVAahCyEsII="; 33 + hash = "sha256-l57Y+sdCD0/3sBK48N/3p3ns3o0LB4h9FQ35ha1AOV4="; 34 34 }; 35 35 36 36 patches = [
+4 -2
pkgs/development/python-modules/craft-store/default.nix
··· 10 10 pydantic_1, 11 11 pyyaml, 12 12 pytestCheckHook, 13 - keyring, 13 + keyring_24, 14 14 macaroonbakery, 15 15 overrides, 16 16 pyxdg, ··· 42 42 ]; 43 43 44 44 propagatedBuildInputs = [ 45 - keyring 45 + keyring_24 46 46 macaroonbakery 47 47 overrides 48 48 pydantic_1 ··· 50 50 requests 51 51 requests-toolbelt 52 52 ]; 53 + 54 + pythonRelaxDeps = [ "macaroonbakery" ]; 53 55 54 56 pythonImportsCheck = [ "craft_store" ]; 55 57
+81
pkgs/development/python-modules/keyring_24/default.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + buildPythonPackage, 5 + fetchPypi, 6 + pythonOlder, 7 + installShellFiles, 8 + setuptools, 9 + setuptools-scm, 10 + shtab, 11 + importlib-metadata, 12 + jaraco-classes, 13 + jaraco-context, 14 + jaraco-functools, 15 + jeepney, 16 + secretstorage, 17 + pytestCheckHook, 18 + }: 19 + 20 + buildPythonPackage rec { 21 + pname = "keyring_24"; 22 + # nixpkgs-update: no auto update 23 + version = "24.3.1"; 24 + pyproject = true; 25 + disabled = pythonOlder "3.8"; 26 + 27 + src = fetchPypi { 28 + inherit version; 29 + pname = "keyring"; 30 + hash = "sha256-wzJ7b/r8DovvvbWXys20ko/+XBIS92RfGG5tmVeomNs="; 31 + }; 32 + 33 + nativeBuildInputs = [ 34 + installShellFiles 35 + shtab 36 + ]; 37 + 38 + build-system = [ 39 + setuptools 40 + setuptools-scm 41 + ]; 42 + 43 + dependencies = 44 + [ 45 + jaraco-classes 46 + jaraco-context 47 + jaraco-functools 48 + ] 49 + ++ lib.optionals stdenv.isLinux [ 50 + jeepney 51 + secretstorage 52 + ] 53 + ++ lib.optionals (pythonOlder "3.12") [ importlib-metadata ]; 54 + 55 + postInstall = '' 56 + installShellCompletion --cmd keyring \ 57 + --bash <($out/bin/keyring --print-completion bash) \ 58 + --zsh <($out/bin/keyring --print-completion zsh) 59 + ''; 60 + 61 + pythonImportsCheck = [ 62 + "keyring" 63 + "keyring.backend" 64 + ]; 65 + 66 + nativeCheckInputs = [ pytestCheckHook ]; 67 + 68 + disabledTestPaths = 69 + [ "tests/backends/test_macOS.py" ] 70 + # These tests fail when sandboxing is enabled because they are unable to get a password from keychain. 71 + ++ lib.optional stdenv.isDarwin "tests/test_multiprocess.py"; 72 + 73 + meta = with lib; { 74 + description = "Store and access your passwords safely"; 75 + homepage = "https://github.com/jaraco/keyring"; 76 + changelog = "https://github.com/jaraco/keyring/blob/v${version}/NEWS.rst"; 77 + license = licenses.mit; 78 + mainProgram = "keyring"; 79 + maintainers = with maintainers; [ jnsgruk ]; 80 + }; 81 + }
+2 -2
pkgs/development/python-modules/launchpadlib/default.nix
··· 4 4 fetchPypi, 5 5 isPy3k, 6 6 httplib2, 7 - keyring, 7 + keyring_24, 8 8 lazr-restfulclient, 9 9 lazr-uri, 10 10 setuptools, ··· 26 26 27 27 propagatedBuildInputs = [ 28 28 httplib2 29 - keyring 29 + keyring_24 30 30 lazr-restfulclient 31 31 lazr-uri 32 32 setuptools
+2
pkgs/top-level/python-packages.nix
··· 6483 6483 6484 6484 keyring = callPackage ../development/python-modules/keyring { }; 6485 6485 6486 + keyring_24 = callPackage ../development/python-modules/keyring_24 { }; 6487 + 6486 6488 keyring-pass = callPackage ../development/python-modules/keyring-pass { }; 6487 6489 6488 6490 keyrings-cryptfile = callPackage ../development/python-modules/keyrings-cryptfile { };