lol
1{ lib, fetchFromGitHub, beets, python3Packages }:
2
3python3Packages.buildPythonApplication rec {
4 pname = "beets-copyartifacts";
5 version = "0.1.5";
6
7 src = fetchFromGitHub {
8 repo = "beets-copyartifacts";
9 owner = "adammillerio";
10 rev = "v${version}";
11 sha256 = "sha256-UTZh7T6Z288PjxFgyFxHnPt0xpAH3cnr8/jIrlJhtyU=";
12 };
13
14 postPatch = ''
15 sed -i -e '/install_requires/,/\]/{/beets/d}' setup.py
16 sed -i -e '/namespace_packages/d' setup.py
17 printf 'from pkgutil import extend_path\n__path__ = extend_path(__path__, __name__)\n' >beetsplug/__init__.py
18 '';
19
20 pytestFlagsArray = [ "-r fEs" ];
21
22 nativeCheckInputs = with python3Packages; [
23 pytestCheckHook
24 beets
25 six
26 ];
27
28 meta = {
29 description = "Beets plugin to move non-music files during the import process";
30 homepage = "https://github.com/adammillerio/beets-copyartifacts";
31 license = lib.licenses.mit;
32 inherit (beets.meta) platforms;
33 };
34}