git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #101547 from kmein/feature/spotify-cli-linux

spotify-cli-linux: init at 1.6.0

commitd93584cd1cb4b9d120615dea17ce993082bd3d4a authorLassulus <github@lassul.us> dateTue 17 Nov 2020, 22:23 (6 years ago) parent48d4b848d83031
4 files changed+56
pkgs/applications/audio/spotify-cli-linux/default.nix+29 pkgs/development/python-modules/lyricwikia/default.nix+23 pkgs/top-level/all-packages.nix+2 pkgs/top-level/python-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.nixnew file+23
@@ -0,0 +1,23 @@
1+{ stdenv, fetchPypi, buildPythonPackage, pytestrunner, six, beautifulsoup4, requests, }:
2+buildPythonPackage rec {
3+ pname = "lyricwikia";
4+ version = "0.1.11";
5+
6+ src = fetchPypi {
7+ inherit pname version;
8+ sha256 = "0l5lkvr3299x79i7skdiggp67rzgax3s00psd1zqkxfysq27jvc8";
9+ };
10+
11+ buildInputs = [ pytestrunner ];
12+ propagatedBuildInputs = [ six beautifulsoup4 requests ];
13+ # upstream has no code tests
14+ doCheck = false;
15+
16+ meta = with stdenv.lib; {
17+ homepage = "https://github.com/enricobacis/lyricwikia";
18+ maintainers = [ maintainers.kmein ];
19+ description = "LyricWikia API for song lyrics";
20+ license = licenses.mit;
21+ platforms = platforms.all;
22+ };
23+}
pkgs/top-level/all-packages.nix+2
@@ -21616,6 +21616,8 @@ julia_15 = callPackage ../development/compilers/julia/1.5.nix {
2161621616
2161721617 spectral = qt5.callPackage ../applications/networking/instant-messengers/spectral { };
2161821618
21619+ spotify-cli-linux = callPackage ../applications/audio/spotify-cli-linux { };
21620+
2161921621 spotifyd = callPackage ../applications/audio/spotifyd {
2162021622 withALSA = stdenv.isLinux;
2162121623 withPulseAudio = config.pulseaudio or stdenv.isLinux;
pkgs/top-level/python-packages.nix+2
@@ -3576,6 +3576,8 @@ in {
35763576
35773577 lxml = callPackage ../development/python-modules/lxml { inherit (pkgs) libxml2 libxslt zlib; };
35783578
3579+ lyricwikia = callPackage ../development/python-modules/lyricwikia { };
3580+
35793581 lz4 = self.python-lz4; # alias 2018-12-05
35803582
35813583 lzstring = callPackage ../development/python-modules/lzstring { };