about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/audio/beets/plugins/extrafiles.nix
blob: 0ab6b3e5414d1fe2dba48505e22ffa34324f1694 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, fetchFromGitHub, beets, pythonPackages }:

pythonPackages.buildPythonApplication rec {
  pname = "beets-extrafiles";
  version = "0.0.7";

  src = fetchFromGitHub {
    repo = "beets-extrafiles";
    owner = "Holzhaus";
    rev = "v${version}";
    sha256 = "0ah7mgax9zrhvvd5scf2z0v0bhd6xmmv5sdb6av840ixpl6vlvm6";
  };

  postPatch = ''
    sed -i -e '/install_requires/,/\]/{/beets/d}' setup.py
    sed -i -e '/namespace_packages/d' setup.py
  '';

  nativeBuildInputs = [ beets ];

  preCheck = ''
    HOME=$TEMPDIR
  '';

  meta = {
    homepage = "https://github.com/Holzhaus/beets-extrafiles";
    description = "A plugin for beets that copies additional files and directories during the import process";
    license = lib.licenses.mit;
  };
}