summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/beets-importreplace/default.nix
blob: c9e403086caa2f79b72e9b1829355c8994d9f194 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  setuptools,
  beets-minimal,
  pytestCheckHook,
  writableTmpDirAsHomeHook,
  nix-update-script,
}:
buildPythonPackage (finalAttrs: {
  pname = "beets-importreplace";
  version = "0.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "edgars-supe";
    repo = "beets-importreplace";
    tag = "v${finalAttrs.version}";
    hash = "sha256-lTfHuOBFzBM/uN4GCX6btQy0KRDP/tzG0fp9/qppQtw=";
  };

  build-system = [ setuptools ];

  nativeBuildInputs = [
    beets-minimal
  ];

  nativeCheckInputs = [
    writableTmpDirAsHomeHook
    pytestCheckHook
  ];

  pythonImportsCheck = [ "beetsplug.importreplace" ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Plugin for beets to perform regex replacements during import";
    homepage = "https://github.com/edgars-supe/beets-importreplace";
    maintainers = with lib.maintainers; [ pyrox0 ];
    license = lib.licenses.mit;
    platforms = lib.platforms.linux ++ lib.platforms.darwin;
  };
})