From e71aacda1a413cbcc911ab9142ad8d8990bd30e0 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Thu, 23 Jul 2020 17:08:41 +0200 Subject: [PATCH] Fix pep425 matching when modifiers are present We wouldn't match `cp38m` but only `cp38` --- pep425.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep425.nix b/pep425.nix index 7135cac..ffa78c5 100644 --- a/pep425.nix +++ b/pep425.nix @@ -62,7 +62,7 @@ let selectWheel = files: let filesWithoutSources = (builtins.filter (x: hasSuffix ".whl" x.file) files); - isPyAbiCompatible = pyabi: x: x == "none" || lib.hasPrefix pyabi x || ( + isPyAbiCompatible = pyabi: x: x == "none" || lib.hasPrefix pyabi x || lib.hasPrefix x pyabi || ( # The CPython stable ABI is abi3 as in the shared library suffix. python.passthru.implementation == "cpython" && builtins.elemAt (lib.splitString "." python.version) 0 == "3" &&