From 395b04b4921384a4141ad8484e902b2dcced70f0 Mon Sep 17 00:00:00 2001 From: Chris Montgomery Date: Fri, 22 Nov 2024 19:01:15 -0500 Subject: [PATCH] beetsPackages.copyartifacts: beets 2.1.0 compat --- pkgs/tools/audio/beets/plugins/copyartifacts.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/audio/beets/plugins/copyartifacts.nix b/pkgs/tools/audio/beets/plugins/copyartifacts.nix index a835061deea2..d1a915a70915 100644 --- a/pkgs/tools/audio/beets/plugins/copyartifacts.nix +++ b/pkgs/tools/audio/beets/plugins/copyartifacts.nix @@ -20,6 +20,10 @@ python3Packages.buildPythonApplication rec { sed -i -e '/install_requires/,/\]/{/beets/d}' setup.py sed -i -e '/namespace_packages/d' setup.py printf 'from pkgutil import extend_path\n__path__ = extend_path(__path__, __name__)\n' >beetsplug/__init__.py + + # beets v2.1.0 compat + # + sed -i -e 's/util\.py3_path/os.fsdecode/g' tests/_common.py ''; pytestFlagsArray = [ "-r fEs" ];