Commit f3060e14 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

beetsPackages.alternatives: modernize

parent 75bddc6a
Loading
Loading
Loading
Loading
+18 −11
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  fetchFromGitHub,
  beets,
  python3Packages,
  writableTmpDirAsHomeHook,
}:

python3Packages.buildPythonApplication rec {
@@ -13,28 +14,34 @@ python3Packages.buildPythonApplication rec {
  src = fetchFromGitHub {
    repo = "beets-alternatives";
    owner = "geigerzaehler";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-i67Bzdh84TuVwcgwo5SgHFp1W04KF3VA6cbrFz82je0=";
    tag = "v${version}";
    hash = "sha256-i67Bzdh84TuVwcgwo5SgHFp1W04KF3VA6cbrFz82je0=";
  };

  nativeBuildInputs = [
    beets
  ];

  dependencies = [
    python3Packages.poetry-core
  ];

  nativeCheckInputs = with python3Packages; [
  nativeCheckInputs =
    with python3Packages;
    [
      pytestCheckHook
    pytest-cov
      pytest-cov-stub
      mock
      typeguard
    ]
    ++ [
      writableTmpDirAsHomeHook
    ];
  preCheck = ''
    export HOME=$(mktemp -d)
  '';

  meta = {
    description = "Beets plugin to manage external files";
    homepage = "https://github.com/geigerzaehler/beets-alternatives";
    changelog = "https://github.com/geigerzaehler/beets-alternatives/blob/v${version}/CHANGELOG.md";
    maintainers = with lib.maintainers; [
      aszlig
      lovesegfault