Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
1.0 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
dbus,
}:
python3Packages.buildPythonApplication rec {
pname = "spotify-cli-linux";
version = "1.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pwittchen";
repo = "spotify-cli-linux";
tag = "v${version}";
hash = "sha256-Ko/as7wiBHawmyag9jFZqpPUZhb3p1+oYcl+26XyBZk=";
};
preBuild = ''
substituteInPlace spotifycli/spotifycli.py \
--replace-fail dbus-send ${dbus}/bin/dbus-send
'';
disabled = !python3Packages.isPy3k;
build-system = with python3Packages; [ setuptools ];
propagatedBuildInputs = with python3Packages; [
lyricwikia
jeepney
];
# 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;
};
}