-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.nix
More file actions
30 lines (23 loc) · 912 Bytes
/
Copy pathpackage.nix
File metadata and controls
30 lines (23 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, python3, installShellFiles, spotifython, }:
python3.pkgs.buildPythonApplication rec {
pname = "spotifython-cli";
version = "0.3.7";
src = ./.;
nativeBuildInputs = [ installShellFiles ];
propagatedBuildInputs = [ spotifython python3.pkgs.click ];
postInstall = ''
_SPOTIFYTHON_CLI_COMPLETE=bash_source $out/bin/spotifython-cli > completion.bash
_SPOTIFYTHON_CLI_COMPLETE=zsh_source $out/bin/spotifython-cli > completion.zsh
_SPOTIFYTHON_CLI_COMPLETE=fish_source $out/bin/spotifython-cli > completion.fish
installShellCompletion --cmd ${pname} completion.{bash,zsh,fish}
'';
doCheck = false;
format = "setuptools";
meta = with lib; {
homepage = "https://github.com/vawvaw/spotifython-cli";
description =
"command line interface for spotifython intended for use with spotifyd";
license = licenses.gpl3;
mainProgram = "spotifython-cli";
};
}