diff options
author | figsoda <figsoda@pm.me> | 2023-09-03 09:29:53 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2023-09-03 10:03:39 -0400 |
commit | 037639761100817b4e4a4717c23f1e1266a09db4 (patch) | |
tree | 767549eee07c96b82c13d8fa5374e46aa5bde9d7 /pkgs/tools/audio/shaq | |
parent | c032a3d0c88822fe4093c1666e711b97bde5a576 (diff) | |
download | nixpkgs-037639761100817b4e4a4717c23f1e1266a09db4.tar nixpkgs-037639761100817b4e4a4717c23f1e1266a09db4.tar.gz nixpkgs-037639761100817b4e4a4717c23f1e1266a09db4.tar.bz2 nixpkgs-037639761100817b4e4a4717c23f1e1266a09db4.tar.lz nixpkgs-037639761100817b4e4a4717c23f1e1266a09db4.tar.xz nixpkgs-037639761100817b4e4a4717c23f1e1266a09db4.tar.zst nixpkgs-037639761100817b4e4a4717c23f1e1266a09db4.zip |
shaq: init at 0.0.1
https://github.com/woodruffw/shaq
Diffstat (limited to 'pkgs/tools/audio/shaq')
-rw-r--r-- | pkgs/tools/audio/shaq/default.nix | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/pkgs/tools/audio/shaq/default.nix b/pkgs/tools/audio/shaq/default.nix new file mode 100644 index 00000000000..5c281e670ee --- /dev/null +++ b/pkgs/tools/audio/shaq/default.nix @@ -0,0 +1,64 @@ +{ lib +, python3 +, fetchFromGitHub +, ffmpeg +}: + +python3.pkgs.buildPythonApplication rec { + pname = "shaq"; + version = "0.0.1"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "woodruffw"; + repo = "shaq"; + rev = "v${version}"; + hash = "sha256-RF606Aeskqbx94H5ivd+RJ+Hk0iYsds/PUY8TZqirs4="; + }; + + nativeBuildInputs = [ + python3.pkgs.flit-core + ]; + + propagatedBuildInputs = with python3.pkgs; [ + pyaudio + pydub + rich + shazamio + ]; + + passthru.optional-dependencies = with python3.pkgs; { + dev = [ + build + shaq + ]; + lint = [ + black + mypy + ruff + ]; + test = [ + pretend + pytest + pytest-cov + ]; + }; + + pythonImportsCheck = [ "shaq" ]; + + makeWrapperArgs = [ + "--prefix" + "PATH" + ":" + (lib.makeBinPath [ ffmpeg ]) + ]; + + meta = with lib; { + description = "A CLI client for Shazam"; + homepage = "https://github.com/woodruffw/shaq"; + changelog = "https://github.com/woodruffw/shaq/releases/tag/${src.rev}"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + mainProgram = "shaq"; + }; +} |