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";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.11.1";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "beets-alternatives";
|
|
|
|
owner = "geigerzaehler";
|
2024-06-20 14:57:18 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-ORmF7YOQD4LvKiYo4Rzz+mzppOEvLics58aOK/IKcHc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
beets
|
|
|
|
python3Packages.poetry-core
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2021-03-09 03:18:52 +00:00
|
|
|
pytestCheckHook
|
2024-06-20 14:57:18 +00:00
|
|
|
pytest-cov
|
2021-03-09 03:18:52 +00:00
|
|
|
mock
|
2024-06-20 14:57:18 +00:00
|
|
|
typeguard
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
2024-06-20 14:57:18 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
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
|
|
|
};
|
|
|
|
}
|