2023-07-15 17:15:38 +00:00
|
|
|
{ lib, python3Packages, fetchPypi, dbus }:
|
2020-11-19 00:13:47 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "spotify-cli-linux";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.8.2";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2020-11-19 00:13:47 +00:00
|
|
|
inherit pname version;
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-XJMkiQR1FoeIPfAuJT22kfYJdc/ABuxExELh0EEev8k=";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-19 00:13:47 +00:00
|
|
|
homepage = "https://pwittchen.github.io/spotify-cli-linux/";
|
|
|
|
maintainers = [ maintainers.kmein ];
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Command line interface to Spotify on Linux";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "spotifycli";
|
2020-11-19 00:13:47 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|