aboutsummaryrefslogtreecommitdiff
path: root/flakes/mypackages/pkgs/notmuch/notmuch-python/default.nix
blob: d639d9aebc7f3e9cb1c0e6daada40b714b3ce0f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ stdenv, notmuch, pythonPackages }:
stdenv.mkDerivation rec {
  name = "notmuch-${pythonPackages.python.name}-${version}";
  version = notmuch.version;
  outputs = [ "out" ];
  buildInputs = with pythonPackages; [ sphinx python ];
  src = notmuch.src;
  phases = [ "unpackPhase" "buildPhase" "installPhase" "fixupPhase" ];
  buildPhase = ''
    cd bindings/python
    python setup.py build
    '';
  installPhase = ''
    python setup.py install --prefix=$out --optimize=1
    '';
}