sublime-audio: Add version without tests
This commit is contained in:
parent
8497e679ed
commit
171312e043
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
{ lib, python3Packages, mopidy }:
|
{ lib, python3Packages, mopidy }:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
|
91
packages/applications/audio/sublime-music/default.nix
Normal file
91
packages/applications/audio/sublime-music/default.nix
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
{ fetchFromGitLab
|
||||||
|
, lib
|
||||||
|
, python3Packages
|
||||||
|
, gobject-introspection
|
||||||
|
, gtk3
|
||||||
|
, pango
|
||||||
|
, wrapGAppsHook
|
||||||
|
, xvfb-run
|
||||||
|
, chromecastSupport ? false
|
||||||
|
, serverSupport ? false
|
||||||
|
, keyringSupport ? true
|
||||||
|
, notifySupport ? true, libnotify
|
||||||
|
, networkSupport ? true, networkmanager
|
||||||
|
}:
|
||||||
|
|
||||||
|
python3Packages.buildPythonApplication rec {
|
||||||
|
pname = "sublime-music";
|
||||||
|
version = "0.11.14";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "sublime-music";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0inif9s6k3vlk21j6icsg92ssclmakgb43hpfrbdd65i5w2fskrd";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
gobject-introspection
|
||||||
|
python3Packages.poetry-core
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
gtk3
|
||||||
|
pango
|
||||||
|
]
|
||||||
|
++ lib.optional notifySupport libnotify
|
||||||
|
++ lib.optional networkSupport networkmanager
|
||||||
|
;
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3Packages; [
|
||||||
|
bleach
|
||||||
|
dataclasses-json
|
||||||
|
deepdiff
|
||||||
|
fuzzywuzzy
|
||||||
|
mpv
|
||||||
|
peewee
|
||||||
|
pygobject3
|
||||||
|
python-Levenshtein
|
||||||
|
python-dateutil
|
||||||
|
requests
|
||||||
|
semver
|
||||||
|
]
|
||||||
|
++ lib.optional chromecastSupport PyChromecast
|
||||||
|
++ lib.optional keyringSupport keyring
|
||||||
|
++ lib.optional serverSupport bottle
|
||||||
|
;
|
||||||
|
|
||||||
|
# hook for gobject-introspection doesn't like strictDeps
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/56943
|
||||||
|
strictDeps = false;
|
||||||
|
|
||||||
|
# Use the test suite provided by the upstream project.
|
||||||
|
doCheck = false;
|
||||||
|
checkInputs = with python3Packages; [
|
||||||
|
pytest
|
||||||
|
pytest-cov
|
||||||
|
];
|
||||||
|
checkPhase = "${xvfb-run}/bin/xvfb-run pytest";
|
||||||
|
|
||||||
|
# Also run the python import check for sanity
|
||||||
|
#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/";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ albakham sumnerevans ];
|
||||||
|
};
|
||||||
|
}
|
@ -122,4 +122,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
swaync = prev.callPackage ./tools/desktop/swaync {};
|
swaync = prev.callPackage ./tools/desktop/swaync {};
|
||||||
|
|
||||||
|
sublime-music-no-test = prev.callPackage ./applications/audio/sublime-music {};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user