sublime-music: 0.11.13 -> 0.11.14

This commit is contained in:
Fabian Affolter 2021-11-09 13:36:51 +01:00 committed by Jonathan Ringer
parent bddacbbf4c
commit f1ab10812a

View file

@ -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