From 59a92f1a19522afa0086ddeb74f883bde4e74b6f Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 22 Jun 2026 18:12:54 +0300 Subject: [PATCH 1/4] python3Packages.beets: 2.11.0 -> 2.12.0 Diff: https://github.com/beetbox/beets/compare/v2.11.0...v2.12.0 --- pkgs/development/python-modules/beets/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/beets/default.nix b/pkgs/development/python-modules/beets/default.nix index e0eb7ef3f293..6507544714d6 100644 --- a/pkgs/development/python-modules/beets/default.nix +++ b/pkgs/development/python-modules/beets/default.nix @@ -113,12 +113,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; From bc081a146c5e78a621812fd60fbb8562b797abf4 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 22 Jun 2026 18:45:03 +0300 Subject: [PATCH 2/4] python3Packages.beets-filetote: remove unused pytest argument --- pkgs/development/python-modules/beets-filetote/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/development/python-modules/beets-filetote/default.nix b/pkgs/development/python-modules/beets-filetote/default.nix index e64240fd22c1..b9a70cfb93b7 100644 --- a/pkgs/development/python-modules/beets-filetote/default.nix +++ b/pkgs/development/python-modules/beets-filetote/default.nix @@ -14,7 +14,6 @@ pytestCheckHook, beets-audible, mediafile, - pytest, reflink, toml, typeguard, From 5f925d54e34935056037595ce8abbd7c0f90a7d7 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 22 Jun 2026 18:29:04 +0300 Subject: [PATCH 3/4] python3Packages.beets-filetote: 1.3.5 -> 1.3.6 Diff: https://github.com/gtronset/beets-filetote/compare/v1.3.5...v1.3.6 Changelog: https://github.com/gtronset/beets-filetote/blob/v1.3.6/CHANGELOG.md --- .../python-modules/beets-filetote/default.nix | 34 +++++++------------ 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/pkgs/development/python-modules/beets-filetote/default.nix b/pkgs/development/python-modules/beets-filetote/default.nix index b9a70cfb93b7..7f9883e664ac 100644 --- a/pkgs/development/python-modules/beets-filetote/default.nix +++ b/pkgs/development/python-modules/beets-filetote/default.nix @@ -1,11 +1,10 @@ { lib, fetchFromGitHub, - fetchpatch2, buildPythonPackage, # build-system - poetry-core, + uv-build, # nativeBuildInputs beets-minimal, @@ -22,31 +21,23 @@ buildPythonPackage (finalAttrs: { pname = "beets-filetote"; - version = "1.3.5"; + version = "1.3.6"; pyproject = true; src = fetchFromGitHub { owner = "gtronset"; repo = "beets-filetote"; tag = "v${finalAttrs.version}"; - hash = "sha256-qMHjcBrXkVG7U5a1E0yRwNgmg7XinRnK3gnV7jAZLTk="; + hash = "sha256-ZrF9Z3Eaem8ZzNJgQoW45MvsNOCoLsd7l/yLQ2pldR0="; }; - # needed to keep beetsplug a namespace package, othwise other plugins will not be found - # can be removed with next version - patches = [ - (fetchpatch2 { - url = "https://github.com/gtronset/beets-filetote/commit/762cf0c4b60b8f6b38cf39b027de4241f12cef37.patch?full_index=1"; - hash = "sha256-c7qIECcqwoV4ZOaA/8JYsM6Aym34peWPh7ZLWUxIYSI="; - excludes = [ "CHANGELOG.md" ]; - }) - ]; + # 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 = [ @@ -55,9 +46,6 @@ buildPythonPackage (finalAttrs: { dependencies = [ mediafile - reflink - toml - typeguard ]; nativeCheckInputs = [ @@ -70,10 +58,12 @@ buildPythonPackage (finalAttrs: { writableTmpDirAsHomeHook ]; - pytestFlags = [ - # This is the same as: - # -r fEs - "-rfEs" + disabledTestPaths = [ + # 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 = { From 9247d13ebfb15eed582dc49a7ae168aedb66fb06 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 22 Jun 2026 18:49:43 +0300 Subject: [PATCH 4/4] python3Packages.beets-alternatives: fix tests with upstream patch --- .../python-modules/beets-alternatives/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/beets-alternatives/default.nix b/pkgs/development/python-modules/beets-alternatives/default.nix index 5144eb45c80c..897481ce5bbd 100644 --- a/pkgs/development/python-modules/beets-alternatives/default.nix +++ b/pkgs/development/python-modules/beets-alternatives/default.nix @@ -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 = [