diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2023-05-04 15:43:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 15:43:40 +0200 |
commit | 12a2201d6199684a751e22e0c2073b703a028030 (patch) | |
tree | 06fee6213201bab3778a5fcac6bfc3b0efedd389 /pkgs/applications | |
parent | 6a8cb457725a3f09d252abd5e8225fbcd846edcf (diff) | |
parent | ac848b1e6896957ba84177844be0f0b41d06ae5f (diff) |
Merge pull request #229780 from NixOS/home-assistant
home-assistant: 2023.4.6 -> 2023.5.0
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/audio/sublime-music/default.nix | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/pkgs/applications/audio/sublime-music/default.nix b/pkgs/applications/audio/sublime-music/default.nix index 39de4728f3da1..e6dcb86eb948f 100644 --- a/pkgs/applications/audio/sublime-music/default.nix +++ b/pkgs/applications/audio/sublime-music/default.nix @@ -1,6 +1,7 @@ { lib , fetchFromGitLab -, python3Packages +, fetchFromGitHub +, python3 , gobject-introspection , gtk3 , pango @@ -15,7 +16,22 @@ , networkmanager }: -python3Packages.buildPythonApplication rec { +let + python = python3.override { + packageOverrides = self: super: { + semver = super.semver.overridePythonAttrs (oldAttrs: rec { + version = "2.13.0"; + src = fetchFromGitHub { + owner = "python-semver"; + repo = "python-semver"; + rev = "refs/tags/${version}"; + hash = "sha256-IWTo/P9JRxBQlhtcH3JMJZZrwAA8EALF4dtHajWUc4w="; + }; + }); + }; + }; +in +python.pkgs.buildPythonApplication rec { pname = "sublime-music"; version = "0.11.16"; format = "pyproject"; @@ -29,10 +45,11 @@ python3Packages.buildPythonApplication rec { nativeBuildInputs = [ gobject-introspection - python3Packages.poetry-core - python3Packages.pythonRelaxDepsHook wrapGAppsHook - ]; + ] ++ (with python.pkgs; [ + poetry-core + pythonRelaxDepsHook + ]); # Can be removed in later versions (probably > 0.11.16) pythonRelaxDeps = [ @@ -57,7 +74,7 @@ python3Packages.buildPythonApplication rec { ++ lib.optional networkSupport networkmanager ; - propagatedBuildInputs = with python3Packages; [ + propagatedBuildInputs = with python.pkgs; [ bleach dataclasses-json deepdiff @@ -75,7 +92,7 @@ python3Packages.buildPythonApplication rec { ++ lib.optional serverSupport bottle ; - nativeCheckInputs = with python3Packages; [ + nativeCheckInputs = with python.pkgs; [ pytest ]; |