nixpkgs/pkgs/applications/audio/spotify-cli-linux/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
894 B
Nix
Raw Normal View History

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