~pvsr/qpm

ref: bab6b19153e9cf288ec0dd26240f31e381afb492 qpm/default.nix -rw-r--r-- 526 bytes
bab6b191Peter Rice nix flake dev shell 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ pkgs ? import <nixpkgs> {}
, python ? "python3"
, pythonPackages ? builtins.getAttr (python + "Packages") pkgs }:

with pythonPackages;
buildPythonPackage rec {
  pname = "qbpm";
  version = "0.3";
  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/
  '';
}