Merge pull request #237090 from sumnerevans/sublime-music-0.12

sublime-music: 0.11.16 -> 0.12.0
This commit is contained in:
Nick Cao 2023-06-12 23:01:23 -06:00 committed by GitHub
commit cf264c3b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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; [