traefik: add djds as maintainer (#377217)
[NixPkgs.git] / pkgs / by-name / sh / shaq / package.nix
blobff7abe883a6bcb9f74769e27a2f4b2f2151b25af
2   lib,
3   python3,
4   fetchFromGitHub,
5   ffmpeg,
6 }:
8 python3.pkgs.buildPythonApplication rec {
9   pname = "shaq";
10   version = "0.0.1";
11   format = "pyproject";
13   src = fetchFromGitHub {
14     owner = "woodruffw";
15     repo = "shaq";
16     rev = "v${version}";
17     hash = "sha256-RF606Aeskqbx94H5ivd+RJ+Hk0iYsds/PUY8TZqirs4=";
18   };
20   nativeBuildInputs = [
21     python3.pkgs.flit-core
22   ];
24   propagatedBuildInputs = with python3.pkgs; [
25     pyaudio
26     pydub
27     rich
28     shazamio
29   ];
31   optional-dependencies = with python3.pkgs; {
32     dev = [
33       build
34       shaq
35     ];
36     lint = [
37       black
38       mypy
39       ruff
40     ];
41     test = [
42       pretend
43       pytest
44       pytest-cov
45     ];
46   };
48   pythonImportsCheck = [ "shaq" ];
50   makeWrapperArgs = [
51     "--prefix"
52     "PATH"
53     ":"
54     (lib.makeBinPath [ ffmpeg ])
55   ];
57   meta = with lib; {
58     description = "CLI client for Shazam";
59     homepage = "https://github.com/woodruffw/shaq";
60     changelog = "https://github.com/woodruffw/shaq/releases/tag/${src.rev}";
61     license = licenses.mit;
62     maintainers = with maintainers; [
63       figsoda
64       mig4ng
65     ];
66     mainProgram = "shaq";
67   };