~pvsr/qpm

qpm/default.nix -rw-r--r-- 527 bytes
8b6b26a0Peter Rice document dmenu-wl support 21 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ pkgs ? import <nixpkgs> { }
, python ? "python3"
, pythonPackages ? builtins.getAttr (python + "Packages") pkgs
}:

with pythonPackages;
buildPythonPackage rec {
  pname = "qbpm";
  version = "0.4";
  src = ./.;
  doCheck = true;
  SETUPTOOLS_SCM_PRETEND_VERSION = version;
  nativeBuildInputs = [ setuptools-scm ];
  propagatedBuildInputs = [ pyxdg ];
  checkInputs = [ pytest ];
  postInstall = ''
    mkdir -p $out/share/fish/vendor_completions.d
    cp completions/qbpm.fish $out/share/fish/vendor_completions.d/
  '';
}