beetsPackages.beets-copyartifacts: use pytest

main
Bernardo Meurer 2 years ago
parent d9910fc928
commit 874994bcb8
No known key found for this signature in database
GPG Key ID: F4C0D53B8D14C246
  1. 16
      pkgs/tools/audio/beets/plugins/copyartifacts.nix

@ -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…
Cancel
Save