Merge pull request #311271 from jfly/fix-sublime-music-build

sublime-music: unpin dependencies, fix build

authored by Fabian Affolter and committed by GitHub a8f43e8a 9367a2b5

+20 -44
+20 -44
pkgs/applications/audio/sublime-music/default.nix
··· 5 , gtk3 6 , pango 7 , wrapGAppsHook3 8 - , xvfb-run 9 , chromecastSupport ? false 10 , serverSupport ? false 11 , keyringSupport ? true ··· 15 , networkmanager 16 }: 17 18 - let 19 - python = python3.override { 20 - packageOverrides = self: super: { 21 - semver = super.semver.overridePythonAttrs (oldAttrs: rec { 22 - version = "2.13.0"; 23 - src = fetchFromGitHub { 24 - owner = "python-semver"; 25 - repo = "python-semver"; 26 - rev = "refs/tags/${version}"; 27 - hash = "sha256-IWTo/P9JRxBQlhtcH3JMJZZrwAA8EALF4dtHajWUc4w="; 28 - }; 29 - doCheck = false; # no tests 30 - }); 31 - 32 - dataclasses-json = super.dataclasses-json.overridePythonAttrs (oldAttrs: rec { 33 - version = "0.5.7"; 34 - src = fetchFromGitHub { 35 - owner = "lidatong"; 36 - repo = "dataclasses-json"; 37 - rev = "refs/tags/v${version}"; 38 - hash = "sha256-0tw5Lz+c4ymO+AGpG6THbiALWGBrehC84+yWWk1eafc="; 39 - }; 40 - nativeBuildInputs = [ python3.pkgs.setuptools ]; 41 - }); 42 - }; 43 - }; 44 - in 45 - python.pkgs.buildPythonApplication rec { 46 pname = "sublime-music"; 47 version = "0.12.0"; 48 - format = "pyproject"; 49 50 src = fetchFromGitHub { 51 owner = "sublime-music"; 52 - repo = pname; 53 rev = "refs/tags/v${version}"; 54 hash = "sha256-FPzeFqDOcaiariz7qJwz6P3Wd+ZDxNP57uj+ptMtEyM="; 55 }; 56 - 57 - nativeBuildInputs = [ 58 - python.pkgs.flit-core 59 - gobject-introspection 60 - wrapGAppsHook3 61 - ]; 62 63 postPatch = '' 64 sed -i "/--cov/d" setup.cfg ··· 68 sed -i "s/python-mpv/mpv/g" pyproject.toml 69 ''; 70 71 buildInputs = [ 72 gtk3 73 pango ··· 76 ++ lib.optional networkSupport networkmanager 77 ; 78 79 - propagatedBuildInputs = with python.pkgs; [ 80 bleach 81 bottle 82 dataclasses-json ··· 94 ++ lib.optional keyringSupport keyring 95 ; 96 97 - nativeCheckInputs = with python.pkgs; [ 98 - pytest 99 ]; 100 101 - checkPhase = '' 102 - ${xvfb-run}/bin/xvfb-run pytest 103 - ''; 104 105 pythonImportsCheck = [ 106 "sublime_music" ··· 118 119 meta = with lib; { 120 description = "GTK3 Subsonic/Airsonic client"; 121 - mainProgram = "sublime-music"; 122 homepage = "https://sublimemusic.app/"; 123 changelog = "https://github.com/sublime-music/sublime-music/blob/v${version}/CHANGELOG.rst"; 124 license = licenses.gpl3Plus; 125 maintainers = with maintainers; [ albakham sumnerevans ]; 126 }; 127 }
··· 5 , gtk3 6 , pango 7 , wrapGAppsHook3 8 , chromecastSupport ? false 9 , serverSupport ? false 10 , keyringSupport ? true ··· 14 , networkmanager 15 }: 16 17 + python3.pkgs.buildPythonApplication rec { 18 pname = "sublime-music"; 19 version = "0.12.0"; 20 + pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "sublime-music"; 24 + repo = "sublime-music"; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-FPzeFqDOcaiariz7qJwz6P3Wd+ZDxNP57uj+ptMtEyM="; 27 }; 28 29 postPatch = '' 30 sed -i "/--cov/d" setup.cfg ··· 34 sed -i "s/python-mpv/mpv/g" pyproject.toml 35 ''; 36 37 + build-system = with python3.pkgs; [ 38 + flit-core 39 + ]; 40 + 41 + nativeBuildInputs = [ 42 + gobject-introspection 43 + wrapGAppsHook3 44 + ]; 45 + 46 buildInputs = [ 47 gtk3 48 pango ··· 51 ++ lib.optional networkSupport networkmanager 52 ; 53 54 + propagatedBuildInputs = with python3.pkgs; [ 55 bleach 56 bottle 57 dataclasses-json ··· 69 ++ lib.optional keyringSupport keyring 70 ; 71 72 + nativeCheckInputs = with python3.pkgs; [ 73 + pytestCheckHook 74 ]; 75 76 + disabledTests = [ 77 + # https://github.com/sublime-music/sublime-music/issues/439 78 + "test_get_music_directory" 79 + ]; 80 81 pythonImportsCheck = [ 82 "sublime_music" ··· 94 95 meta = with lib; { 96 description = "GTK3 Subsonic/Airsonic client"; 97 homepage = "https://sublimemusic.app/"; 98 changelog = "https://github.com/sublime-music/sublime-music/blob/v${version}/CHANGELOG.rst"; 99 license = licenses.gpl3Plus; 100 maintainers = with maintainers; [ albakham sumnerevans ]; 101 + mainProgram = "sublime-music"; 102 }; 103 }