2022-05-18 14:49:53 +00:00
|
|
|
{ lib, fetchFromGitHub, beets, python3Packages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
python3Packages.buildPythonApplication {
|
2021-04-22 02:08:21 +00:00
|
|
|
pname = "beets-copyartifacts";
|
|
|
|
version = "unstable-2020-02-15";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "beets-copyartifacts";
|
2021-04-22 02:08:21 +00:00
|
|
|
owner = "adammillerio";
|
|
|
|
rev = "85eefaebf893cb673fa98bfde48406ec99fd1e4b";
|
|
|
|
sha256 = "sha256-bkT2BZZ2gdcacgvyrVe2vMrOMV8iMAm8Q5xyrZzyqU0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
pytestFlagsArray = [ "-r fEs" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2022-05-18 14:49:53 +00:00
|
|
|
pytestCheckHook
|
|
|
|
beets
|
|
|
|
six
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Beets plugin to move non-music files during the import process";
|
|
|
|
homepage = "https://github.com/sbarakat/beets-copyartifacts";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.mit;
|
2022-05-18 14:49:53 +00:00
|
|
|
inherit (beets.meta) platforms;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|