|
|
@ -1,4 +1,4 @@ |
|
|
|
{ lib, fetchFromGitHub, beets, python3Packages, glibcLocales }: |
|
|
|
{ lib, fetchFromGitHub, beets, python3Packages }: |
|
|
|
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication { |
|
|
|
python3Packages.buildPythonApplication { |
|
|
|
pname = "beets-copyartifacts"; |
|
|
|
pname = "beets-copyartifacts"; |
|
|
@ -15,20 +15,20 @@ python3Packages.buildPythonApplication { |
|
|
|
sed -i -e '/install_requires/,/\]/{/beets/d}' setup.py |
|
|
|
sed -i -e '/install_requires/,/\]/{/beets/d}' setup.py |
|
|
|
sed -i -e '/namespace_packages/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 |
|
|
|
printf 'from pkgutil import extend_path\n__path__ = extend_path(__path__, __name__)\n' >beetsplug/__init__.py |
|
|
|
|
|
|
|
|
|
|
|
# Skip test which is already failing upstream. |
|
|
|
|
|
|
|
sed -i -e '1i import unittest' \ |
|
|
|
|
|
|
|
-e 's/\(^ *\)# failing/\1@unittest.skip/' \ |
|
|
|
|
|
|
|
tests/test_reimport.py |
|
|
|
|
|
|
|
''; |
|
|
|
''; |
|
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ beets python3Packages.nose glibcLocales ]; |
|
|
|
pytestFlagsArray = [ "-r fEs" ]; |
|
|
|
|
|
|
|
|
|
|
|
checkPhase = "LANG=en_US.UTF-8 nosetests"; |
|
|
|
checkInputs = with python3Packages; [ |
|
|
|
|
|
|
|
pytestCheckHook |
|
|
|
|
|
|
|
beets |
|
|
|
|
|
|
|
six |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
meta = { |
|
|
|
meta = { |
|
|
|
description = "Beets plugin to move non-music files during the import process"; |
|
|
|
description = "Beets plugin to move non-music files during the import process"; |
|
|
|
homepage = "https://github.com/sbarakat/beets-copyartifacts"; |
|
|
|
homepage = "https://github.com/sbarakat/beets-copyartifacts"; |
|
|
|
license = lib.licenses.mit; |
|
|
|
license = lib.licenses.mit; |
|
|
|
|
|
|
|
inherit (beets.meta) platforms; |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|