beetsPackages.beets-copyartifacts: use pytest
This commit is contained in:
parent
d9910fc928
commit
874994bcb8
@ -1,4 +1,4 @@
|
||||
{ lib, fetchFromGitHub, beets, python3Packages, glibcLocales }:
|
||||
{ lib, fetchFromGitHub, beets, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonApplication {
|
||||
pname = "beets-copyartifacts";
|
||||
@ -15,20 +15,20 @@ python3Packages.buildPythonApplication {
|
||||
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
|
||||
|
||||
# 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 = {
|
||||
description = "Beets plugin to move non-music files during the import process";
|
||||
homepage = "https://github.com/sbarakat/beets-copyartifacts";
|
||||
license = lib.licenses.mit;
|
||||
inherit (beets.meta) platforms;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user