nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python313Packages.swh-{*}: switch to `finalAttrs` pattern, (re) adopt (#500321)

authored by

Pol Dellaiera and committed by
GitHub
9dcdce2d 0a48eab3

+57 -53
+2 -1
pkgs/by-name/sw/swh/package.nix
··· 1 1 { 2 + lib, 2 3 python3Packages, 3 4 writeShellApplication, 4 5 withSwhPythonPackages ? [ ··· 20 19 writeShellApplication { 21 20 name = "swh"; 22 21 text = '' 23 - ${python3'}/bin/swh "$@" 22 + ${lib.getExe' python3' "swh"} "$@" 24 23 ''; 25 24 meta = { 26 25 inherit (python3Packages.swh-core.meta) license mainProgram platforms;
+4 -4
pkgs/development/python-modules/swh-auth/default.nix
··· 19 19 starlette, 20 20 }: 21 21 22 - buildPythonPackage rec { 22 + buildPythonPackage (finalAttrs: { 23 23 pname = "swh-auth"; 24 24 version = "0.10.0"; 25 25 pyproject = true; ··· 29 29 group = "swh"; 30 30 owner = "devel"; 31 31 repo = "swh-auth"; 32 - tag = "v${version}"; 32 + tag = "v${finalAttrs.version}"; 33 33 hash = "sha256-8ctd5D7zT66oVNZlvRIs8pN7Fe2BhTgC+S9p1HBDO9E="; 34 34 }; 35 35 ··· 65 65 description = "Set of utility libraries related to user authentication in applications and services based on the use of Keycloak and OpenID Connect"; 66 66 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-auth"; 67 67 license = lib.licenses.gpl3Only; 68 - maintainers = [ ]; 68 + maintainers = with lib.maintainers; [ drupol ]; 69 69 }; 70 - } 70 + })
+5 -5
pkgs/development/python-modules/swh-core/default.nix
··· 42 42 pkgs, # Only for pkgs.zstd 43 43 }: 44 44 45 - buildPythonPackage rec { 45 + buildPythonPackage (finalAttrs: { 46 46 pname = "swh-core"; 47 47 version = "4.6.0"; 48 48 pyproject = true; ··· 52 52 group = "swh"; 53 53 owner = "devel"; 54 54 repo = "swh-core"; 55 - tag = "v${version}"; 55 + tag = "v${finalAttrs.version}"; 56 56 hash = "sha256-dI+xfj0DnUbBdYIVycyJQg3B/jnH/eg/Ju8YX2k8Qkc="; 57 57 }; 58 58 ··· 125 125 ]; 126 126 127 127 meta = { 128 - changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-core/-/tags/${src.tag}"; 128 + changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-core/-/tags/${finalAttrs.src.tag}"; 129 129 description = "Low-level utilities and helpers used by almost all other modules in the stack"; 130 130 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-core"; 131 131 license = lib.licenses.gpl3Only; 132 132 mainProgram = "swh"; 133 - maintainers = [ ]; 133 + maintainers = with lib.maintainers; [ drupol ]; 134 134 }; 135 - } 135 + })
+4 -4
pkgs/development/python-modules/swh-export/default.nix
··· 22 22 pkgs, 23 23 }: 24 24 25 - buildPythonPackage rec { 25 + buildPythonPackage (finalAttrs: { 26 26 pname = "swh-export"; 27 27 version = "1.8.0"; 28 28 pyproject = true; ··· 32 32 group = "swh"; 33 33 owner = "devel"; 34 34 repo = "swh-export"; 35 - tag = "v${version}"; 35 + tag = "v${finalAttrs.version}"; 36 36 hash = "sha256-n97MMYn7EmTrv411YSxUD1+zfbFB8KOSns44N3NqqV8="; 37 37 }; 38 38 ··· 85 85 description = "Software Heritage dataset tools"; 86 86 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-export"; 87 87 license = lib.licenses.gpl3Only; 88 - maintainers = [ ]; 88 + maintainers = with lib.maintainers; [ drupol ]; 89 89 }; 90 - } 90 + })
+4 -4
pkgs/development/python-modules/swh-journal/default.nix
··· 13 13 pytest-mock, 14 14 }: 15 15 16 - buildPythonPackage rec { 16 + buildPythonPackage (finalAttrs: { 17 17 pname = "swh-journal"; 18 18 version = "2.0.0"; 19 19 pyproject = true; ··· 23 23 group = "swh"; 24 24 owner = "devel"; 25 25 repo = "swh-journal"; 26 - tag = "v${version}"; 26 + tag = "v${finalAttrs.version}"; 27 27 hash = "sha256-ycTB7hSjTerJOd+nEv8HbM82vPAO8P1+xooy0oN4eHw="; 28 28 }; 29 29 ··· 60 60 description = "Persistent logger of changes to the archive, with publish-subscribe support"; 61 61 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-journal"; 62 62 license = lib.licenses.gpl3Only; 63 - maintainers = [ ]; 63 + maintainers = with lib.maintainers; [ drupol ]; 64 64 }; 65 - } 65 + })
+4 -4
pkgs/development/python-modules/swh-model/default.nix
··· 24 24 25 25 }: 26 26 27 - buildPythonPackage rec { 27 + buildPythonPackage (finalAttrs: { 28 28 pname = "swh-model"; 29 29 version = "8.4.1"; 30 30 pyproject = true; ··· 34 34 group = "swh"; 35 35 owner = "devel"; 36 36 repo = "swh-model"; 37 - tag = "v${version}"; 37 + tag = "v${finalAttrs.version}"; 38 38 hash = "sha256-v/vbY0mxvsbuLUAmDACW9brfVF5djMYyvv9Mf1VL6do="; 39 39 }; 40 40 ··· 79 79 description = "Implementation of the Data model of the Software Heritage project, used to archive source code artifacts"; 80 80 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-model"; 81 81 license = lib.licenses.gpl3Only; 82 - maintainers = [ ]; 82 + maintainers = with lib.maintainers; [ drupol ]; 83 83 }; 84 - } 84 + })
+5 -5
pkgs/development/python-modules/swh-objstorage/default.nix
··· 38 38 util-linux, 39 39 }: 40 40 41 - buildPythonPackage rec { 41 + buildPythonPackage (finalAttrs: { 42 42 pname = "swh-objstorage"; 43 43 version = "5.1.0"; 44 44 pyproject = true; ··· 48 48 group = "swh"; 49 49 owner = "devel"; 50 50 repo = "swh-objstorage"; 51 - tag = "v${version}"; 51 + tag = "v${finalAttrs.version}"; 52 52 hash = "sha256-NnNT9Lt/LGDIJpUmfkfPn6JnF3k8Usf2UVa88zHPKlg="; 53 53 }; 54 54 ··· 113 113 ]; 114 114 115 115 meta = { 116 - changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-objstorage/-/tags/${src.tag}"; 116 + changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-objstorage/-/tags/${finalAttrs.src.tag}"; 117 117 description = "Content-addressable object storage for the Software Heritage project"; 118 118 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-objstorage"; 119 119 license = lib.licenses.gpl3Only; 120 - maintainers = [ ]; 120 + maintainers = with lib.maintainers; [ drupol ]; 121 121 }; 122 - } 122 + })
+6 -6
pkgs/development/python-modules/swh-scanner/default.nix
··· 22 22 types-requests, 23 23 }: 24 24 25 - buildPythonPackage rec { 25 + buildPythonPackage (finalAttrs: { 26 26 pname = "swh-scanner"; 27 27 version = "0.8.3"; 28 28 pyproject = true; ··· 32 32 group = "swh"; 33 33 owner = "devel"; 34 34 repo = "swh-scanner"; 35 - tag = "v${version}"; 35 + tag = "v${finalAttrs.version}"; 36 36 hash = "sha256-baUUuYFapBD7iuDaDP8CSR9f4glVZcS5qBpZddVf7z8="; 37 37 }; 38 38 ··· 66 66 types-requests 67 67 ]; 68 68 69 - disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin) [ 69 + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ 70 70 # Failed: Failed to start the server after 5 seconds. 71 71 "test_add_provenance_with_release" 72 72 "test_add_provenance_with_revision" ··· 81 81 ]; 82 82 83 83 meta = { 84 - changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-scanner/-/tags/${src.tag}"; 84 + changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-scanner/-/tags/${finalAttrs.src.tag}"; 85 85 description = "Source code scanner to analyze code bases and compare them with source code artifacts archived by Software Heritage"; 86 86 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-scanner"; 87 87 license = lib.licenses.gpl3Only; 88 - maintainers = [ ]; 88 + maintainers = with lib.maintainers; [ drupol ]; 89 89 }; 90 - } 90 + })
+5 -5
pkgs/development/python-modules/swh-scheduler/default.nix
··· 29 29 types-requests, 30 30 }: 31 31 32 - buildPythonPackage rec { 32 + buildPythonPackage (finalAttrs: { 33 33 pname = "swh-scheduler"; 34 34 version = "3.3.0"; 35 35 pyproject = true; ··· 39 39 group = "swh"; 40 40 owner = "devel"; 41 41 repo = "swh-scheduler"; 42 - tag = "v${version}"; 42 + tag = "v${finalAttrs.version}"; 43 43 hash = "sha256-Kv5QH3sj/InKOSjxGtwVxtoAluHx5eIxO5GqcbOs0NY="; 44 44 }; 45 45 ··· 89 89 disabledTests = [ "test_setup_log_handler_with_env_configuration" ]; 90 90 91 91 meta = { 92 - changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-scheduler/-/tags/${src.tag}"; 92 + changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-scheduler/-/tags/${finalAttrs.src.tag}"; 93 93 description = "Job scheduler for the Software Heritage project"; 94 94 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-scheduler"; 95 95 license = lib.licenses.gpl3Only; 96 - maintainers = [ ]; 96 + maintainers = with lib.maintainers; [ drupol ]; 97 97 }; 98 - } 98 + })
+9 -6
pkgs/development/python-modules/swh-shard/default.nix
··· 15 15 setuptools-scm, 16 16 }: 17 17 18 - buildPythonPackage rec { 18 + buildPythonPackage (finalAttrs: { 19 19 pname = "swh-shard"; 20 20 version = "2.2.0"; 21 21 pyproject = true; ··· 25 25 group = "swh"; 26 26 owner = "devel"; 27 27 repo = "swh-shard"; 28 - tag = "v${version}"; 28 + tag = "v${finalAttrs.version}"; 29 29 hash = "sha256-97oZ+Wa8GmyL2V4CnlSvaTbQZJ+mPbg6uVmWd0oxv1Q="; 30 30 }; 31 31 ··· 66 66 disabledTests = [ 67 67 "test_setup_log_handler_with_env_configuration" 68 68 ] 69 - ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ 69 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 70 70 # assert (51675136 - 51396608) < (100 * 1024) 71 71 "test_memleak" 72 72 # ValueError: Cannot convert negative int ··· 76 76 ]; 77 77 78 78 meta = { 79 - changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-shard/-/tags/v2.2.0"; 79 + changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-shard/-/tags/${finalAttrs.src.tag}"; 80 80 description = "Shard File Format for the Software Heritage Object Storage"; 81 81 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-shard"; 82 82 license = lib.licenses.gpl3Only; 83 - maintainers = [ lib.maintainers.dotlambda ]; 83 + maintainers = with lib.maintainers; [ 84 + dotlambda 85 + drupol 86 + ]; 84 87 }; 85 - } 88 + })
+5 -5
pkgs/development/python-modules/swh-storage/default.nix
··· 31 31 swh-journal, 32 32 }: 33 33 34 - buildPythonPackage rec { 34 + buildPythonPackage (finalAttrs: { 35 35 pname = "swh-storage"; 36 36 version = "4.1.1"; 37 37 pyproject = true; ··· 41 41 group = "swh"; 42 42 owner = "devel"; 43 43 repo = "swh-storage"; 44 - tag = "v${version}"; 44 + tag = "v${finalAttrs.version}"; 45 45 hash = "sha256-AY2IcRJG19oSy2usI9JZTEKYLI3SEiLpNisqD7zus8A="; 46 46 }; 47 47 ··· 106 106 ]; 107 107 108 108 meta = { 109 - changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-storage/-/tags/${src.tag}"; 109 + changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-storage/-/tags/${finalAttrs.src.tag}"; 110 110 description = "Abstraction layer over the archive, allowing to access all stored source code artifacts as well as their metadata"; 111 111 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-storage"; 112 112 license = lib.licenses.gpl3Only; 113 - maintainers = [ ]; 113 + maintainers = with lib.maintainers; [ drupol ]; 114 114 }; 115 - } 115 + })
+4 -4
pkgs/development/python-modules/swh-web-client/default.nix
··· 18 18 types-requests, 19 19 }: 20 20 21 - buildPythonPackage rec { 21 + buildPythonPackage (finalAttrs: { 22 22 pname = "swh-web-client"; 23 23 version = "0.9.2"; 24 24 pyproject = true; ··· 28 28 group = "swh"; 29 29 owner = "devel"; 30 30 repo = "swh-web-client"; 31 - tag = "v${version}"; 31 + tag = "v${finalAttrs.version}"; 32 32 hash = "sha256-ZZptYLC1os2i0NtBD3mp4QaQQRoKxnr9k8gJuqmpizE="; 33 33 }; 34 34 ··· 66 66 description = "Client for Software Heritage Web applications, via their APIs"; 67 67 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-web-client"; 68 68 license = lib.licenses.gpl3Only; 69 - maintainers = [ ]; 69 + maintainers = with lib.maintainers; [ drupol ]; 70 70 }; 71 - } 71 + })