2023-05-25 13:49:37 +02:00
|
|
|
{ lib, python3Packages, fetchPypi, dbus }:
|
2020-10-24 14:14:26 +02:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "spotify-cli-linux";
|
2024-01-12 14:57:14 +01:00
|
|
|
version = "1.8.2";
|
2020-10-24 14:14:26 +02:00
|
|
|
|
2023-05-25 13:49:37 +02:00
|
|
|
src = fetchPypi {
|
2020-10-24 14:14:26 +02:00
|
|
|
inherit pname version;
|
2024-01-12 14:57:14 +01:00
|
|
|
sha256 = "sha256-XJMkiQR1FoeIPfAuJT22kfYJdc/ABuxExELh0EEev8k=";
|
2020-10-24 14:14:26 +02: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-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-10-24 14:14:26 +02:00
|
|
|
homepage = "https://pwittchen.github.io/spotify-cli-linux/";
|
|
|
|
maintainers = [ maintainers.kmein ];
|
|
|
|
description = "A command line interface to Spotify on Linux.";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "spotifycli";
|
2020-10-24 14:14:26 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|