mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Merge pull request #393 from jashandeep-sohi/fix-platform-comp
fix: add support for wheels files w/ multiple platforms seperated by a period
This commit is contained in:
commit
1d9c857d07
1 changed files with 5 additions and 4 deletions
|
@ -76,10 +76,11 @@ let
|
|||
if targetMachine != null
|
||||
then
|
||||
(
|
||||
x: x.platform == "manylinux1_${targetMachine}"
|
||||
|| x.platform == "manylinux2010_${targetMachine}"
|
||||
|| x.platform == "manylinux2014_${targetMachine}"
|
||||
|| x.platform == "any"
|
||||
x: x.platform == "any" || lib.lists.any (e: hasInfix e x.platform) [
|
||||
"manylinux1_${targetMachine}"
|
||||
"manylinux2010_${targetMachine}"
|
||||
"manylinux2014_${targetMachine}"
|
||||
]
|
||||
)
|
||||
else
|
||||
(x: x.platform == "any")
|
||||
|
|
Loading…
Add table
Reference in a new issue