git.iko.soy/typeable/nixpkgs
on master help sign in
spotify-cli-linux: init at 1.6.0
commit8d830311ecd536e0c0b60bb39b4dc4b669ad8993 authorKierán Meinhardt <kmein@posteo.de> dateSat 24 Oct 2020, 14:14 (6 years ago) parentaa86d48
3 files changed+34
pkgs/applications/audio/spotify-cli-linux/default.nix+29 pkgs/development/python-modules/lyricwikia/default.nix+3 pkgs/top-level/all-packages.nix+2
pkgs/applications/audio/spotify-cli-linux/default.nixnew file+29
@@ -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+}
pkgs/development/python-modules/lyricwikia/default.nix+3
@@ -2,14 +2,17 @@
22buildPythonPackage rec {
33 pname = "lyricwikia";
44 version = "0.1.11";
5+
56 src = fetchPypi {
67 inherit pname version;
78 sha256 = "0l5lkvr3299x79i7skdiggp67rzgax3s00psd1zqkxfysq27jvc8";
89 };
10+
911 buildInputs = [ pytestrunner ];
1012 propagatedBuildInputs = [ six beautifulsoup4 requests ];
1113 # upstream has no code tests
1214 doCheck = false;
15+
1316 meta = with stdenv.lib; {
1417 homepage = "https://github.com/enricobacis/lyricwikia";
1518 maintainers = [ maintainers.kmein ];
pkgs/top-level/all-packages.nix+2
@@ -21210,6 +21210,8 @@ in
2121021210
2121121211 spectral = qt5.callPackage ../applications/networking/instant-messengers/spectral { };
2121221212
21213+ spotify-cli-linux = callPackage ../applications/audio/spotify-cli-linux { };
21214+
2121321215 spotifyd = callPackage ../applications/audio/spotifyd {
2121421216 withALSA = stdenv.isLinux;
2121521217 withPulseAudio = config.pulseaudio or stdenv.isLinux;