summary refs log tree commit diff
path: root/pkgs/applications/audio/sublime-music/default.nix
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-11-09 13:36:51 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-11-09 07:55:05 -0800
commitf1ab10812a1185e7cfa11cccc2a6456e9f384916 (patch)
tree7960c7b5467e681434b69130b7d05b27b8e8bef7 /pkgs/applications/audio/sublime-music/default.nix
parentbddacbbf4ce97f82fad896c07a5c9d2080b8dc15 (diff)
downloadnixpkgs-f1ab10812a1185e7cfa11cccc2a6456e9f384916.tar
nixpkgs-f1ab10812a1185e7cfa11cccc2a6456e9f384916.tar.gz
nixpkgs-f1ab10812a1185e7cfa11cccc2a6456e9f384916.tar.bz2
nixpkgs-f1ab10812a1185e7cfa11cccc2a6456e9f384916.tar.lz
nixpkgs-f1ab10812a1185e7cfa11cccc2a6456e9f384916.tar.xz
nixpkgs-f1ab10812a1185e7cfa11cccc2a6456e9f384916.tar.zst
nixpkgs-f1ab10812a1185e7cfa11cccc2a6456e9f384916.zip
sublime-music: 0.11.13 -> 0.11.14
Diffstat (limited to 'pkgs/applications/audio/sublime-music/default.nix')
-rw-r--r--pkgs/applications/audio/sublime-music/default.nix19
1 files changed, 13 insertions, 6 deletions
diff --git a/pkgs/applications/audio/sublime-music/default.nix b/pkgs/applications/audio/sublime-music/default.nix
index 5c9250b45e0..65529002015 100644
--- a/pkgs/applications/audio/sublime-music/default.nix
+++ b/pkgs/applications/audio/sublime-music/default.nix
@@ -15,7 +15,7 @@
 
 python3Packages.buildPythonApplication rec {
   pname = "sublime-music";
-  version = "0.11.13";
+  version = "0.11.14";
   format = "pyproject";
 
   src = fetchFromGitLab {
@@ -57,19 +57,26 @@ python3Packages.buildPythonApplication rec {
    ++ lib.optional serverSupport bottle
   ;
 
+  postPatch = ''
+    sed -i "/--cov/d" setup.cfg
+    sed -i "/--no-cov-on-fail/d" setup.cfg
+  '';
+
   # hook for gobject-introspection doesn't like strictDeps
   # https://github.com/NixOS/nixpkgs/issues/56943
   strictDeps = false;
 
-  # Use the test suite provided by the upstream project.
   checkInputs = with python3Packages; [
     pytest
-    pytest-cov
   ];
-  checkPhase = "${xvfb-run}/bin/xvfb-run pytest";
 
-  # Also run the python import check for sanity
-  pythonImportsCheck = [ "sublime_music" ];
+  checkPhase = ''
+    ${xvfb-run}/bin/xvfb-run pytest -k "not test_json_load_unload"
+  '';
+
+  pythonImportsCheck = [
+    "sublime_music"
+  ];
 
   postInstall = ''
     install -Dm444 sublime-music.desktop      -t $out/share/applications