summary refs log tree commit diff
path: root/pkgs/tools/audio/beets/plugins/alternatives.nix
blob: 146e9f5066414d858e0be22dde63631bc0c66ce7 (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
31
32
{ lib, fetchFromGitHub, beets, pythonPackages }:

pythonPackages.buildPythonApplication rec {
  pname = "beets-alternatives";
  version = "unstable-2021-02-01";

  src = fetchFromGitHub {
    repo = "beets-alternatives";
    owner = "geigerzaehler";
    rev = "288299e3aa9a1602717b04c28696fce5ce4259bf";
    sha256 = "sha256-Xl7AHr33hXQqQDuFbWuj8HrIugeipJFPmvNXpCkU/mI=";
  };

  postPatch = ''
    substituteInPlace setup.cfg \
      --replace "addopts = --cov --cov-report=term --cov-report=html" ""
  '';

  nativeBuildInputs = [ beets ];

  checkInputs = with pythonPackages; [
    pytestCheckHook
    mock
  ];

  meta = with lib; {
    description = "Beets plugin to manage external files";
    homepage = "https://github.com/geigerzaehler/beets-alternatives";
    maintainers = with maintainers; [ aszlig lovesegfault ];
    license = licenses.mit;
  };
}