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

{ flit
}:

{ ... } @ attrs:

attrs // {
  buildInputs = [ flit ];
  buildPhase = attrs.buildPhase or ''
    runHook preBuild
    flit wheel
    runHook postBuild
  '';

  # Flit packages do not come with tests.
  installCheckPhase = attrs.checkPhase or ":";
  doCheck = attrs.doCheck or false;
}