1# This function provides specific bits for building a wheel-based Python package.
2
3{
4}:
5
6{ ... } @ attrs:
7
8attrs // {
9 unpackPhase = ''
10 mkdir dist
11 cp $src dist/"''${src#*-}"
12 '';
13
14 # Wheels are pre-compiled
15 buildPhase = attrs.buildPhase or ":";
16 installCheckPhase = attrs.checkPhase or ":";
17
18 # Wheels don't have any checks to run
19 doCheck = attrs.doCheck or false;
20}