mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
parent
c032a3d0c8
commit
0376397611
64
pkgs/tools/audio/shaq/default.nix
Normal file
64
pkgs/tools/audio/shaq/default.nix
Normal file
|
@ -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";
|
||||
};
|
||||
}
|
|
@ -25195,6 +25195,8 @@ with pkgs;
|
|||
inherit (skawarePackages) cleanPackaging;
|
||||
};
|
||||
|
||||
shaq = callPackage ../tools/audio/shaq { };
|
||||
|
||||
slang = callPackage ../development/libraries/slang { };
|
||||
|
||||
slibGuile = callPackage ../development/libraries/slib {
|
||||
|
|
Loading…
Reference in a new issue