depot/third_party/nixpkgs/pkgs/applications/audio/spotify-cli-linux/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

30 lines
896 B
Nix

{ lib, python3Packages, fetchPypi, dbus }:
python3Packages.buildPythonApplication rec {
pname = "spotify-cli-linux";
version = "1.8.2";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-XJMkiQR1FoeIPfAuJT22kfYJdc/ABuxExELh0EEev8k=";
};
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 lib; {
homepage = "https://pwittchen.github.io/spotify-cli-linux/";
maintainers = [ maintainers.kmein ];
description = "Command line interface to Spotify on Linux";
mainProgram = "spotifycli";
license = licenses.gpl3;
platforms = platforms.linux;
};
}