Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 dbus, 6}: 7python3Packages.buildPythonApplication rec { 8 pname = "spotify-cli-linux"; 9 version = "1.9.1"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "pwittchen"; 14 repo = "spotify-cli-linux"; 15 tag = "v${version}"; 16 hash = "sha256-Ko/as7wiBHawmyag9jFZqpPUZhb3p1+oYcl+26XyBZk="; 17 }; 18 19 preBuild = '' 20 substituteInPlace spotifycli/spotifycli.py \ 21 --replace-fail dbus-send ${dbus}/bin/dbus-send 22 ''; 23 24 disabled = !python3Packages.isPy3k; 25 build-system = with python3Packages; [ setuptools ]; 26 propagatedBuildInputs = with python3Packages; [ 27 lyricwikia 28 jeepney 29 ]; 30 31 # upstream has no code tests, but uses its "tests" for linting and formatting checks 32 doCheck = false; 33 34 meta = with lib; { 35 homepage = "https://pwittchen.github.io/spotify-cli-linux/"; 36 maintainers = [ maintainers.kmein ]; 37 description = "Command line interface to Spotify on Linux"; 38 mainProgram = "spotifycli"; 39 license = licenses.gpl3; 40 platforms = platforms.linux; 41 }; 42}