diff options
author | Jonas Heinrich <onny@project-insanity.org> | 2024-06-15 16:53:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-15 16:53:51 +0200 |
commit | f15be30a76601a59ff9d97287d8554c34fc04c66 (patch) | |
tree | 10a8a2d838eadd834c6f02f6c606d1f7f21dc3e1 /pkgs/applications/audio | |
parent | 3da97e2163d090fbf03929971357a6757dc44037 (diff) | |
parent | 78c3078a6d512b4283c402832c64a87bcaffc42f (diff) |
Merge pull request #319297 from onny/sublime-music2
sublime-music: 0.12.0 -> 0.12.0-unstable-2024-01-06
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r-- | pkgs/applications/audio/sublime-music/default.nix | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/pkgs/applications/audio/sublime-music/default.nix b/pkgs/applications/audio/sublime-music/default.nix deleted file mode 100644 index a1c74abeca1c8..0000000000000 --- a/pkgs/applications/audio/sublime-music/default.nix +++ /dev/null @@ -1,103 +0,0 @@ -{ lib -, fetchFromGitHub -, python3 -, gobject-introspection -, gtk3 -, pango -, wrapGAppsHook3 -, chromecastSupport ? false -, serverSupport ? false -, keyringSupport ? true -, notifySupport ? true -, libnotify -, networkSupport ? true -, networkmanager -}: - -python3.pkgs.buildPythonApplication rec { - pname = "sublime-music"; - version = "0.12.0"; - pyproject = true; - - src = fetchFromGitHub { - owner = "sublime-music"; - repo = "sublime-music"; - rev = "refs/tags/v${version}"; - hash = "sha256-FPzeFqDOcaiariz7qJwz6P3Wd+ZDxNP57uj+ptMtEyM="; - }; - - postPatch = '' - sed -i "/--cov/d" setup.cfg - sed -i "/--no-cov-on-fail/d" setup.cfg - - # https://github.com/sublime-music/sublime-music/commit/f477659d24e372ed6654501deebad91ae4b0b51c - sed -i "s/python-mpv/mpv/g" pyproject.toml - ''; - - build-system = with python3.pkgs; [ - flit-core - ]; - - nativeBuildInputs = [ - gobject-introspection - wrapGAppsHook3 - ]; - - buildInputs = [ - gtk3 - pango - ] - ++ lib.optional notifySupport libnotify - ++ lib.optional networkSupport networkmanager - ; - - propagatedBuildInputs = with python3.pkgs; [ - bleach - bottle - dataclasses-json - deepdiff - levenshtein - mpv - peewee - pychromecast - pygobject3 - python-dateutil - requests - semver - thefuzz - ] - ++ lib.optional keyringSupport keyring - ; - - nativeCheckInputs = with python3.pkgs; [ - pytestCheckHook - ]; - - disabledTests = [ - # https://github.com/sublime-music/sublime-music/issues/439 - "test_get_music_directory" - ]; - - pythonImportsCheck = [ - "sublime_music" - ]; - - postInstall = '' - install -Dm444 sublime-music.desktop -t $out/share/applications - install -Dm444 sublime-music.metainfo.xml -t $out/share/metainfo - - for size in 16 22 32 48 64 72 96 128 192 512 1024; do - install -Dm444 logo/rendered/"$size".png \ - $out/share/icons/hicolor/"$size"x"$size"/apps/sublime-music.png - done - ''; - - meta = with lib; { - description = "GTK3 Subsonic/Airsonic client"; - homepage = "https://sublimemusic.app/"; - changelog = "https://github.com/sublime-music/sublime-music/blob/v${version}/CHANGELOG.rst"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ albakham sumnerevans ]; - mainProgram = "sublime-music"; - }; -} |