summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/build-python-package-wheel.nix
blob: 7be0a4c304a3287095875f86736aaebf07c86051 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This function provides specific bits for building a wheel-based Python package.

{
}:

{ ... } @ attrs:

attrs // {
  unpackPhase = ''
    mkdir dist
    cp $src dist/"''${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;
}