20 lines
No EOL
393 B
Nix
20 lines
No EOL
393 B
Nix
# This function provides specific bits for building a wheel-based Python package.
|
|
|
|
{
|
|
}:
|
|
|
|
{ ... } @ attrs:
|
|
|
|
attrs // {
|
|
unpackPhase = ''
|
|
mkdir dist
|
|
cp "$src" "dist/$(stripHash "$src")"
|
|
'';
|
|
|
|
# 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;
|
|
} |