spotify-cli-linux: init at 1.6.0

This commit is contained in:
Kierán Meinhardt 2020-10-24 14:14:26 +02:00
parent aa86d488cf
commit 8d830311ec
3 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ stdenv, python3Packages, dbus }:
python3Packages.buildPythonApplication rec {
pname = "spotify-cli-linux";
version = "1.6.0";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "0slyc3jfrj3rwq8rv6p5aqkw487aw7a87kmf1fb6n4vnvcf08v7w";
};
preBuild = ''
substituteInPlace spotifycli/spotifycli.py \
--replace dbus-send ${dbus}/bin/dbus-send
'';
disabled = !python3Packages.isPy3k;
propagatedBuildInputs = with python3Packages; [ lyricwikia dbus-python ];
# upstream has no code tests, but uses its "tests" for linting and formatting checks
doCheck = false;
meta = with stdenv.lib; {
homepage = "https://pwittchen.github.io/spotify-cli-linux/";
maintainers = [ maintainers.kmein ];
description = "A command line interface to Spotify on Linux.";
license = licenses.gpl3;
platforms = platforms.linux;
};
}

View file

@ -2,14 +2,17 @@
buildPythonPackage rec {
pname = "lyricwikia";
version = "0.1.11";
src = fetchPypi {
inherit pname version;
sha256 = "0l5lkvr3299x79i7skdiggp67rzgax3s00psd1zqkxfysq27jvc8";
};
buildInputs = [ pytestrunner ];
propagatedBuildInputs = [ six beautifulsoup4 requests ];
# upstream has no code tests
doCheck = false;
meta = with stdenv.lib; {
homepage = "https://github.com/enricobacis/lyricwikia";
maintainers = [ maintainers.kmein ];

View file

@ -21210,6 +21210,8 @@ in
spectral = qt5.callPackage ../applications/networking/instant-messengers/spectral { };
spotify-cli-linux = callPackage ../applications/audio/spotify-cli-linux { };
spotifyd = callPackage ../applications/audio/spotifyd {
withALSA = stdenv.isLinux;
withPulseAudio = config.pulseaudio or stdenv.isLinux;