Fix pep425 matching when modifiers are present

We wouldn't match `cp38m` but only `cp38`
This commit is contained in:
adisbladis 2020-07-23 17:08:41 +02:00
parent 0ad5d1a14a
commit e71aacda1a
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -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" &&