@@ -0,0 +1,29 @@
1+{ stdenv, python3Packages, dbus }:
2+python3Packages.buildPythonApplication rec {
3+ pname = "spotify-cli-linux";
4+ version = "1.6.0";
5+
6+ src = python3Packages.fetchPypi {
7+ inherit pname version;
8+ sha256 = "0slyc3jfrj3rwq8rv6p5aqkw487aw7a87kmf1fb6n4vnvcf08v7w";
9+ };
10+
11+ preBuild = ''
12+ substituteInPlace spotifycli/spotifycli.py \
13+ --replace dbus-send ${dbus}/bin/dbus-send
14+ '';
15+
16+ disabled = !python3Packages.isPy3k;
17+ propagatedBuildInputs = with python3Packages; [ lyricwikia dbus-python ];
18+
19+ # upstream has no code tests, but uses its "tests" for linting and formatting checks
20+ doCheck = false;
21+
22+ meta = with stdenv.lib; {
23+ homepage = "https://pwittchen.github.io/spotify-cli-linux/";
24+ maintainers = [ maintainers.kmein ];
25+ description = "A command line interface to Spotify on Linux.";
26+ license = licenses.gpl3;
27+ platforms = platforms.linux;
28+ };
29+}