From 1ccdb2a64afdb4d9b2af7892c18464b7614cf32e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 26 Jan 2026 13:00:51 +0100 Subject: [PATCH] python313Packages.container-inspector: modernize --- .../python-modules/container-inspector/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/container-inspector/default.nix b/pkgs/development/python-modules/container-inspector/default.nix index 8493b777ecd5..da2a8d11f986 100644 --- a/pkgs/development/python-modules/container-inspector/default.nix +++ b/pkgs/development/python-modules/container-inspector/default.nix @@ -10,7 +10,7 @@ setuptools-scm, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "container-inspector"; version = "33.1.0"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "nexB"; repo = "container-inspector"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-uwfqPh4e5zNO0K5rKZ2pxgOkX/KF9pzCsKdYbQuw9MA="; }; @@ -26,7 +26,7 @@ buildPythonPackage rec { build-system = [ setuptools-scm ]; - propagatedBuildInputs = [ + dependencies = [ attrs click dockerfile-parse @@ -40,8 +40,8 @@ buildPythonPackage rec { meta = { description = "Suite of analysis utilities and command line tools for container images"; homepage = "https://github.com/nexB/container-inspector"; - changelog = "https://github.com/nexB/container-inspector/releases/tag/v${version}"; - license = with lib.licenses; [ asl20 ]; + changelog = "https://github.com/nexB/container-inspector/releases/tag/v${finalAttrs.src.tag}"; + license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; }; -} +})