19 buildPythonPackage rec {
24 src = fetchFromGitHub {
27 rev = "refs/tags/${version}";
28 hash = "sha256-PYA7HUm++4r4kwezyPi3mWRRGF47qHjz2nHUZmVYk/I=";
32 # remove poetry and virtualenv from build dependencies as they are not used
33 # https://github.com/dotX12/ShazamIO/pull/71
35 name = "remove-unused-build-dependencies.patch";
36 url = "https://github.com/dotX12/ShazamIO/commit/5c61e1efe51c2826852da5b6aa6ad8ce3d4012a9.patch";
37 hash = "sha256-KiU5RVBPnSs5qrReFeTe9ePg1fR7y0NchIIHcQwlPaI=";
46 propagatedBuildInputs = [
62 # requires internet access
64 "test_recognize_song_file"
65 "test_recognize_song_bytes"
68 pythonImportsCheck = [ "shazamio" ];
71 description = "Free asynchronous library from reverse engineered Shazam API";
72 homepage = "https://github.com/dotX12/ShazamIO";
73 changelog = "https://github.com/dotX12/ShazamIO/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
74 license = licenses.mit;
75 maintainers = with maintainers; [ figsoda ];
76 # https://github.com/shazamio/ShazamIO/issues/80
77 broken = versionAtLeast pydantic.version "2";