From da8f2be23b03a2fe7ceed2908a5d2d6265bddf5a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 Mar 2023 12:22:42 +0100 Subject: [PATCH] python310Packages.container-inspector: fix invalid version specifier --- .../python-modules/container-inspector/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/container-inspector/default.nix b/pkgs/development/python-modules/container-inspector/default.nix index 3e4931a770e5..12375681c58f 100644 --- a/pkgs/development/python-modules/container-inspector/default.nix +++ b/pkgs/development/python-modules/container-inspector/default.nix @@ -28,6 +28,12 @@ buildPythonPackage rec { dontConfigure = true; + postPatch = '' + # PEP440 support was removed in newer setuptools, https://github.com/nexB/container-inspector/pull/51 + substituteInPlace setup.cfg \ + --replace ">=3.7.*" ">=3.7" + ''; + nativeBuildInputs = [ setuptools-scm ];