2022-05-18 14:49:53 +00:00
|
|
|
{ lib, fetchFromGitHub, beets, python3Packages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "beets-alternatives";
|
2021-04-22 02:08:21 +00:00
|
|
|
version = "unstable-2021-02-01";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "beets-alternatives";
|
|
|
|
owner = "geigerzaehler";
|
2021-04-22 02:08:21 +00:00
|
|
|
rev = "288299e3aa9a1602717b04c28696fce5ce4259bf";
|
|
|
|
sha256 = "sha256-Xl7AHr33hXQqQDuFbWuj8HrIugeipJFPmvNXpCkU/mI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "addopts = --cov --cov-report=term --cov-report=html" ""
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ beets ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2021-03-09 03:18:52 +00:00
|
|
|
pytestCheckHook
|
|
|
|
mock
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Beets plugin to manage external files";
|
|
|
|
homepage = "https://github.com/geigerzaehler/beets-alternatives";
|
2021-04-22 02:08:21 +00:00
|
|
|
maintainers = with maintainers; [ aszlig lovesegfault ];
|
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|