python3Packages.beets: 2.11.0 -> 2.12.0 (#542921)

This commit is contained in:
Sandro
2026-07-18 11:49:46 +00:00
committed by GitHub
3 changed files with 26 additions and 27 deletions

View File

@@ -38,6 +38,11 @@ buildPythonPackage rec {
url = "https://github.com/geigerzaehler/beets-alternatives/commit/84fdb0fa15225cce1e881b07bddcb52715677915.patch";
hash = "sha256-rURvP7aNJ+I9bPjk43t8rYujOK1iUS1J4RFMAHfa5AU=";
})
# Fix for Beets 2.12; see https://github.com/geigerzaehler/beets-alternatives/pull/234
(fetchpatch {
url = "https://github.com/geigerzaehler/beets-alternatives/commit/e27772bb627d1b0763685d7add209d40987f2b95.patch";
hash = "sha256-47HhaYWzHQakGlbUWdfG5qkfvbadbow1i+O74JnKPwM=";
})
];
build-system = [

View File

@@ -4,7 +4,7 @@
buildPythonPackage,
# build-system
poetry-core,
uv-build,
# nativeBuildInputs
beets-minimal,
@@ -13,31 +13,31 @@
pytestCheckHook,
beets-audible,
mediafile,
pytest,
reflink,
toml,
typeguard,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "beets-filetote";
version = "1.1.1";
version = "1.3.6";
pyproject = true;
src = fetchFromGitHub {
owner = "gtronset";
repo = "beets-filetote";
tag = "v${version}";
hash = "sha256-NsYBsP60SiCfQ63C4WMkshyreFqOSmx3LP5Gwq6ECF0=";
tag = "v${finalAttrs.version}";
hash = "sha256-ZrF9Z3Eaem8ZzNJgQoW45MvsNOCoLsd7l/yLQ2pldR0=";
};
# https://github.com/gtronset/beets-filetote/issues/328
postPatch = ''
substituteInPlace pyproject.toml --replace-fail "poetry-core<2.0.0" "poetry-core"
substituteInPlace pyproject.toml --replace-fail "uv_build>=0.11.21,<0.12" "uv-build"
'';
build-system = [
poetry-core
uv-build
];
nativeBuildInputs = [
@@ -46,9 +46,6 @@ buildPythonPackage rec {
dependencies = [
mediafile
reflink
toml
typeguard
];
nativeCheckInputs = [
@@ -61,26 +58,23 @@ buildPythonPackage rec {
writableTmpDirAsHomeHook
];
pytestFlags = [
# This is the same as:
# -r fEs
"-rfEs"
];
disabledTestPaths = [
"tests/test_cli_operation.py"
"tests/test_pruning.py"
"tests/test_version.py"
# Tests fail for Beets 2.12.x, see:
# https://github.com/gtronset/beets-filetote/issues/328
"tests/test_exclude.py::TestExclude::test_exclude_strseq_of_filenames_by_string"
"tests/test_exclude.py::TestExclude::test_exclude_strseq_of_filenames_by_list"
"tests/test_printignored.py::TestPrintIgnored::test_print_ignored"
];
meta = {
description = "Beets plugin to move non-music files during the import process";
homepage = "https://github.com/gtronset/beets-filetote";
changelog = "https://github.com/gtronset/beets-filetote/blob/${src.tag}/CHANGELOG.md";
maintainers = with lib.maintainers; [ dansbandit ];
changelog = "https://github.com/gtronset/beets-filetote/blob/${finalAttrs.src.tag}/CHANGELOG.md";
maintainers = with lib.maintainers; [
dansbandit
returntoreality
];
license = lib.licenses.mit;
inherit (beets-minimal.meta) platforms;
# https://github.com/gtronset/beets-filetote/issues/211
broken = true;
};
}
})

View File

@@ -115,12 +115,12 @@
buildPythonPackage (finalAttrs: {
pname = "beets";
version = "2.11.0";
version = "2.12.0";
src = fetchFromGitHub {
owner = "beetbox";
repo = "beets";
tag = "v${finalAttrs.version}";
hash = "sha256-fi6D0P2GtEO41VL6UKAArRedZVxw97yqDUAoilktUho=";
hash = "sha256-u2qoZ0/qWq9YUcwbOpsqtIjX5BZ2z2wj00X59Pf+/fk=";
};
pyproject = true;