beetsPackages.alternatives: modernize

This commit is contained in:
Gaetan Lepage
2025-02-28 10:13:31 +01:00
parent 75bddc6a8f
commit f3060e1468
+18 -11
View File
@@ -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; [
pytestCheckHook
pytest-cov
mock
typeguard
];
preCheck = ''
export HOME=$(mktemp -d)
'';
nativeCheckInputs =
with python3Packages;
[
pytestCheckHook
pytest-cov-stub
mock
typeguard
]
++ [
writableTmpDirAsHomeHook
];
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