Skip to content

Commit

Permalink
sublime-music: Pin semver at 2.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed May 4, 2023
1 parent 4e0a4f2 commit ac848b1
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions pkgs/applications/audio/sublime-music/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, fetchFromGitLab
, python3Packages
, fetchFromGitHub
, python3
, gobject-introspection
, gtk3
, pango
Expand All @@ -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";
Expand All @@ -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 = [
Expand All @@ -57,7 +74,7 @@ python3Packages.buildPythonApplication rec {
++ lib.optional networkSupport networkmanager
;

propagatedBuildInputs = with python3Packages; [
propagatedBuildInputs = with python.pkgs; [
bleach
dataclasses-json
deepdiff
Expand All @@ -75,7 +92,7 @@ python3Packages.buildPythonApplication rec {
++ lib.optional serverSupport bottle
;

nativeCheckInputs = with python3Packages; [
nativeCheckInputs = with python.pkgs; [
pytest
];

Expand Down

0 comments on commit ac848b1

Please sign in to comment.