beets: 1.4.9 -> unstable-2020-12-22
The maintainer has stopped cutting releases[1]. Since the last release, 1.4.9, includes a dependency that is filled with hate speech[2] it's all the more reason to package the unstable version and eliminate that requirement. Moreover a number of fixes, improvements, and features have landed since. [1]: https://github.com/beetbox/beets/issues/3625 [2]: https://github.com/NixOS/nixpkgs/pull/90504 Co-authored-by: Doron Behar <doron.behar@gmail.com>
This commit is contained in:
committed by
Doron Behar
co-authored by
Doron Behar
parent
52a4a170b9
commit
0faf72a557
@@ -0,0 +1,33 @@
|
||||
{ stdenv, fetchFromGitHub, beets, pythonPackages, glibcLocales }:
|
||||
|
||||
pythonPackages.buildPythonApplication {
|
||||
name = "beets-copyartifacts";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "beets-copyartifacts";
|
||||
owner = "sbarakat";
|
||||
rev = "d0bb75c8fc8fe125e8191d73de7ade6212aec0fd";
|
||||
sha256 = "19b4lqq1p45n348ssmql60jylw2fw7vfj9j22nly5qj5qx51j3g5";
|
||||
};
|
||||
|
||||
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
|
||||
|
||||
# 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 pythonPackages.nose glibcLocales ];
|
||||
|
||||
checkPhase = "LANG=en_US.UTF-8 nosetests";
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user