2021-03-09 03:18:52 +00:00
|
|
|
{ lib, fetchFromGitHub, beets, pythonPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
|
|
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 ];
|
|
|
|
|
|
|
|
checkInputs = with pythonPackages; [
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|