eggs

lib.eggs.matchEggFileName

Type: matchEggFileName :: string -> [ string ]

Regex match an egg file name, returning a list of match groups. Returns null if no match.

name

: Function argument

lib.eggs.isEggFileName

Type: isEggFileName :: string -> bool

Check whether string is an egg file or not.

name

: The filename string

::: {.example #function-library-example-lib.eggs.isEggFileName}

lib.eggs.isEggFileName usage example

# isEggFileName "cryptography-41.0.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"
false

:::

lib.eggs.parseEggFileName

Type: parsehEggFileName :: string -> AttrSet

Parse an egg file name.

name

: Function argument

::: {.example #function-library-example-lib.eggs.parseEggFileName}

lib.eggs.parseEggFileName usage example

# parseEggFileName

:::

lib.eggs.selectEggs

Type: selectEggs :: derivation -> [ AttrSet ] -> [ AttrSet ]

Select compatible eggs from a list and return them in priority order.

python

: Python interpreter derivation

files

: List of files parsed by parseEggFileName