2016-09-26 23:01:13 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pythonPackages }:
|
2016-09-10 00:43:42 +01:00
|
|
|
|
2016-09-26 23:01:13 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2016-09-10 00:43:42 +01:00
|
|
|
name = "beets-copyartifacts";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "beets-copyartifacts";
|
|
|
|
owner = "sbarakat";
|
|
|
|
rev = "dac4a1605111e24bb5b498aa84cead7c87480834";
|
|
|
|
sha256 = "0p5cskfgqinzh48a58hw56f96g9lar3k3g2p0ip1m9kawzf6axng";
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Beets plugin to move non-music files during the import process";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/sbarakat/beets-copyartifacts;
|
2016-09-10 00:43:42 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|