at 24.11-pre 30 lines 899 B view raw
1{ lib, python3Packages, fetchPypi, dbus }: 2python3Packages.buildPythonApplication rec { 3 pname = "spotify-cli-linux"; 4 version = "1.8.2"; 5 6 src = fetchPypi { 7 inherit pname version; 8 sha256 = "sha256-XJMkiQR1FoeIPfAuJT22kfYJdc/ABuxExELh0EEev8k="; 9 }; 10 11 preBuild = '' 12 substituteInPlace spotifycli/spotifycli.py \ 13 --replace dbus-send ${dbus}/bin/dbus-send 14 ''; 15 16 disabled = !python3Packages.isPy3k; 17 propagatedBuildInputs = with python3Packages; [ lyricwikia dbus-python ]; 18 19 # upstream has no code tests, but uses its "tests" for linting and formatting checks 20 doCheck = false; 21 22 meta = with lib; { 23 homepage = "https://pwittchen.github.io/spotify-cli-linux/"; 24 maintainers = [ maintainers.kmein ]; 25 description = "A command line interface to Spotify on Linux."; 26 mainProgram = "spotifycli"; 27 license = licenses.gpl3; 28 platforms = platforms.linux; 29 }; 30}