diff --git a/pkgs/applications/audio/sublime-music/default.nix b/pkgs/applications/audio/sublime-music/default.nix index e6dcb86eb948..7004842f5dff 100644 --- a/pkgs/applications/audio/sublime-music/default.nix +++ b/pkgs/applications/audio/sublime-music/default.nix @@ -1,5 +1,4 @@ { lib -, fetchFromGitLab , fetchFromGitHub , python3 , gobject-introspection @@ -33,37 +32,24 @@ let in python.pkgs.buildPythonApplication rec { pname = "sublime-music"; - version = "0.11.16"; - format = "pyproject"; + version = "0.12.0"; + format = "flit"; - src = fetchFromGitLab { + src = fetchFromGitHub { owner = "sublime-music"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-n77mTgElwwFaX3WQL8tZzbkPwnsyQ08OW9imSOjpBlg="; + hash = "sha256-FPzeFqDOcaiariz7qJwz6P3Wd+ZDxNP57uj+ptMtEyM="; }; nativeBuildInputs = [ gobject-introspection wrapGAppsHook - ] ++ (with python.pkgs; [ - poetry-core - pythonRelaxDepsHook - ]); - - # Can be removed in later versions (probably > 0.11.16) - pythonRelaxDeps = [ - "deepdiff" - "python-mpv" ]; postPatch = '' sed -i "/--cov/d" setup.cfg sed -i "/--no-cov-on-fail/d" setup.cfg - # https://github.com/sublime-music/sublime-music/pull/370 - # Can be removed in later versions (probably > 0.11.16) - substituteInPlace pyproject.toml \ - --replace 'python-Levenshtein = "^0.12.0"' 'Levenshtein = ">0.12.0"' ''; buildInputs = [ @@ -76,20 +62,20 @@ python.pkgs.buildPythonApplication rec { propagatedBuildInputs = with python.pkgs; [ bleach + bottle dataclasses-json deepdiff - fuzzywuzzy + levenshtein mpv peewee + pychromecast pygobject3 - levenshtein python-dateutil requests semver + thefuzz ] - ++ lib.optional chromecastSupport pychromecast ++ lib.optional keyringSupport keyring - ++ lib.optional serverSupport bottle ; nativeCheckInputs = with python.pkgs; [