0faf72a557
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>
36 lines
1001 B
Nix
36 lines
1001 B
Nix
{ stdenv, fetchFromGitHub, beets, pythonPackages, flac, liboggz, mp3val }:
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
name = "beets-check";
|
|
version = "0.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "beets-check";
|
|
owner = "geigerzaehler";
|
|
rev = "v${version}";
|
|
sha256 = "0b2ijjf0gycs6b40sm33ida3sjygjiv4spb5mba52vysc7iwmnjn";
|
|
};
|
|
|
|
nativeBuildInputs = [ beets ];
|
|
checkInputs = [ pythonPackages.nose flac liboggz mp3val ];
|
|
propagatedBuildInputs = [ flac liboggz mp3val ];
|
|
|
|
# patch out broken tests
|
|
patches = [ ./beet-check-tests.patch ];
|
|
|
|
# patch out futures dependency, it is only needed for Python2 which we don't
|
|
# support.
|
|
prePatch = ''
|
|
sed -i "/futures/d" setup.py
|
|
'';
|
|
|
|
checkPhase = "nosetests";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Beets plugin to Verify and store checksums in your library";
|
|
homepage = "https://github.com/geigerzaehler/beets-check";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
};
|
|
}
|