summary refs log tree commit diff
path: root/pkgs/tools/audio/beets
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-03-07 15:49:23 +0100
committerRobert Schütz <dev@schuetz-co.de>2021-03-07 16:02:33 +0100
commit00210fcf0d7066c772a6cbe9d4668e6d0bc13f0e (patch)
tree161ccb54eb461ea4f37367f595f0525fbeb212ca /pkgs/tools/audio/beets
parentb961b571bb9c33f553d51822ae1191ab93454793 (diff)
downloadnixpkgs-00210fcf0d7066c772a6cbe9d4668e6d0bc13f0e.tar
nixpkgs-00210fcf0d7066c772a6cbe9d4668e6d0bc13f0e.tar.gz
nixpkgs-00210fcf0d7066c772a6cbe9d4668e6d0bc13f0e.tar.bz2
nixpkgs-00210fcf0d7066c772a6cbe9d4668e6d0bc13f0e.tar.lz
nixpkgs-00210fcf0d7066c772a6cbe9d4668e6d0bc13f0e.tar.xz
nixpkgs-00210fcf0d7066c772a6cbe9d4668e6d0bc13f0e.tar.zst
nixpkgs-00210fcf0d7066c772a6cbe9d4668e6d0bc13f0e.zip
beetsExternalPlugins.alternatives: 0.9.0 -> 0.10.2
Diffstat (limited to 'pkgs/tools/audio/beets')
-rw-r--r--pkgs/tools/audio/beets/plugins/alternatives.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/tools/audio/beets/plugins/alternatives.nix b/pkgs/tools/audio/beets/plugins/alternatives.nix
index 797aab16c1a..c0b9123d96a 100644
--- a/pkgs/tools/audio/beets/plugins/alternatives.nix
+++ b/pkgs/tools/audio/beets/plugins/alternatives.nix
@@ -2,19 +2,26 @@
 
 pythonPackages.buildPythonApplication rec {
   pname = "beets-alternatives";
-  version = "0.9.0";
+  version = "0.10.2";
 
   src = fetchFromGitHub {
     repo = "beets-alternatives";
     owner = "geigerzaehler";
-    # This is 0.8.2 with fixes against Beets 1.4.6 and Python 3 compatibility.
     rev = "v${version}";
-    sha256 = "19160gwg5j6asy8mc21g2kf87mx4zs9x2gbk8q4r6330z4kpl5pm";
+    sha256 = "1dsz94fb29wra1f9580w20bz2f1bgkj4xnsjgwgbv14flbfw4bp0";
   };
 
-  nativeBuildInputs = [ beets pythonPackages.nose ];
+  postPatch = ''
+    substituteInPlace setup.cfg \
+      --replace "addopts = --cov --cov-report=term --cov-report=html" ""
+  '';
 
-  checkPhase = "nosetests";
+  nativeBuildInputs = [ beets ];
+
+  checkInputs = with pythonPackages; [
+    pytestCheckHook
+    mock
+  ];
 
   meta = {
     description = "Beets plugin to manage external files";