2016-12-03 04:04:52 -08:00
|
|
|
# This function provides specific bits for building a wheel-based Python package.
|
|
|
|
|
|
|
|
{
|
|
|
|
}:
|
|
|
|
|
|
|
|
{ ... } @ attrs:
|
|
|
|
|
|
|
|
attrs // {
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir dist
|
2019-07-05 12:10:52 -07:00
|
|
|
cp "$src" "dist/$(stripHash "$src")"
|
2016-12-03 04:04:52 -08:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Wheels are pre-compiled
|
|
|
|
buildPhase = attrs.buildPhase or ":";
|
|
|
|
installCheckPhase = attrs.checkPhase or ":";
|
|
|
|
|
|
|
|
# Wheels don't have any checks to run
|
|
|
|
doCheck = attrs.doCheck or false;
|
|
|
|
}
|