beetsPackages.copyartifacts: beets 2.1.0 compat

This commit is contained in:
Chris Montgomery 2024-11-22 19:01:15 -05:00 committed by Doron Behar
parent 33e9c10983
commit 395b04b492

View File

@ -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
# <https://github.com/beetbox/beets/commit/0e87389994a9969fa0930ffaa607609d02e286a8>
sed -i -e 's/util\.py3_path/os.fsdecode/g' tests/_common.py
'';
pytestFlagsArray = [ "-r fEs" ];