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
899 B
Nix
Raw Normal View History

{ 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
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;
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.";
mainProgram = "spotifycli";
2020-10-24 14:14:26 +02:00
license = licenses.gpl3;
platforms = platforms.linux;
};
}