Wheel filenames can have the format "mediapipe-0.8.7.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl".
Currently the check is for an exact match in the platform bit, i.e. "manylinux_2_17_x86_64.manylinux2014_x86_64".
This change checks whether the platform bit contains the platform we're looking for anywhere in it.
When no matching wheels are found, builtins.head causes this to fail
with a very low-level error. Better to return an empty list and
trigger the assertion in the code which calls this.
- Extract utility functions to ./lib.nix
- Extract buildPythonPackage to ./mk-poetry-dep.nix
- Replace some functions with existing builtin functions
- Use lib.partition for python package splitting
- Drop package filtering on the top-level and leave it to pep425.nix
Provides a `select` function that picks the most appropriate `.whl` file
based on platform, arch, python version and manylinux/OSX - version.
- Adds unit tests for pep425
- Adds test for manylinux support
- Fixes overrides: `passhtru` must be extended, not overwritten
- Don't strip python packages: this screws up manylinux binaries