1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 poetry-core,
8
9 # dependencies
10 aiohttp,
11 asyncio-throttle,
12}:
13
14buildPythonPackage rec {
15 pname = "deezer-python-async";
16 version = "0.3.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "music-assistant";
21 repo = "deezer-python-async";
22 tag = "v${version}";
23 hash = "sha256-uuAB+SC/ECG50ox/6Bi+94bAt+YZokeQChpDQUAK+zc=";
24 };
25
26 build-system = [
27 poetry-core
28 ];
29
30 dependencies = [
31 aiohttp
32 asyncio-throttle
33 ];
34
35 doCheck = false; # requires access to the deezer api
36
37 pythonImportsCheck = [
38 "deezer"
39 ];
40
41 meta = {
42 description = "Deezer client for python *but async";
43 homepage = "https://github.com/music-assistant/deezer-python-async";
44 changelog = "https://github.com/music-assistant/deezer-python-async/blob/${src.tag}/CHANGELOG.md";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ hexa ];
47 };
48}