8 python3Packages.buildPythonApplication rec {
9 pname = "beets-copyartifacts";
12 src = fetchFromGitHub {
13 repo = "beets-copyartifacts";
14 owner = "adammillerio";
16 sha256 = "sha256-UTZh7T6Z288PjxFgyFxHnPt0xpAH3cnr8/jIrlJhtyU=";
20 sed -i -e '/install_requires/,/\]/{/beets/d}' setup.py
21 sed -i -e '/namespace_packages/d' setup.py
22 printf 'from pkgutil import extend_path\n__path__ = extend_path(__path__, __name__)\n' >beetsplug/__init__.py
25 # <https://github.com/beetbox/beets/commit/0e87389994a9969fa0930ffaa607609d02e286a8>
26 sed -i -e 's/util\.py3_path/os.fsdecode/g' tests/_common.py
29 pytestFlagsArray = [ "-r fEs" ];
32 python3Packages.pytestCheckHook
36 export HOME=$(mktemp -d)
40 description = "Beets plugin to move non-music files during the import process";
41 homepage = "https://github.com/adammillerio/beets-copyartifacts";
42 license = lib.licenses.mit;
43 inherit (beets.meta) platforms;