diff options
author | Michal Rus <m@michalrus.com> | 2016-09-10 01:43:42 +0200 |
---|---|---|
committer | Michal Rus <m@michalrus.com> | 2016-09-10 01:43:42 +0200 |
commit | 37a61d357a7b8609f57f4f37d7c1d93cbadef6c8 (patch) | |
tree | f8cafbd1522bedd3b69c40f327a5cbf6e963b408 /pkgs/tools/audio/beets/copyartifacts-plugin.nix | |
parent | 6b20d5b75efb3e4c95f7dabbfe0e607c1205f9be (diff) | |
download | nixpkgs-37a61d357a7b8609f57f4f37d7c1d93cbadef6c8.tar nixpkgs-37a61d357a7b8609f57f4f37d7c1d93cbadef6c8.tar.gz nixpkgs-37a61d357a7b8609f57f4f37d7c1d93cbadef6c8.tar.bz2 nixpkgs-37a61d357a7b8609f57f4f37d7c1d93cbadef6c8.tar.lz nixpkgs-37a61d357a7b8609f57f4f37d7c1d93cbadef6c8.tar.xz nixpkgs-37a61d357a7b8609f57f4f37d7c1d93cbadef6c8.tar.zst nixpkgs-37a61d357a7b8609f57f4f37d7c1d93cbadef6c8.zip |
beets: add copyartifacts plugin
Diffstat (limited to 'pkgs/tools/audio/beets/copyartifacts-plugin.nix')
-rw-r--r-- | pkgs/tools/audio/beets/copyartifacts-plugin.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/audio/beets/copyartifacts-plugin.nix b/pkgs/tools/audio/beets/copyartifacts-plugin.nix new file mode 100644 index 00000000000..d3b36d15e03 --- /dev/null +++ b/pkgs/tools/audio/beets/copyartifacts-plugin.nix @@ -0,0 +1,24 @@ +{ stdenv, buildPythonApplication, fetchFromGitHub, pythonPackages }: + +buildPythonApplication rec { + 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"; + homepage = "https://github.com/sbarakat/beets-copyartifacts"; + license = stdenv.lib.licenses.mit; + }; +} |