1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 python-dateutil,
6 poetry-core,
7 requests,
8 isodate,
9 ratelimit,
10 typing-extensions,
11 mpegdash,
12}:
13buildPythonPackage rec {
14 pname = "tidalapi";
15 version = "0.8.6";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "EbbLabs";
20 repo = "python-tidal";
21 tag = "v${version}";
22 hash = "sha256-SsyO0bh2ayHfGzINBW1BTTPS/ICvIymIhQ1HUPRFOwU=";
23 };
24
25 build-system = [
26 poetry-core
27 ];
28
29 dependencies = [
30 requests
31 python-dateutil
32 mpegdash
33 isodate
34 ratelimit
35 typing-extensions
36 ];
37
38 doCheck = false; # tests require internet access
39
40 pythonImportsCheck = [
41 "tidalapi"
42 ];
43
44 meta = {
45 changelog = "https://github.com/tamland/python-tidal/blob/v${version}/HISTORY.rst";
46 description = "Unofficial Python API for TIDAL music streaming service";
47 homepage = "https://github.com/tamland/python-tidal";
48 license = lib.licenses.gpl3;
49 maintainers = with lib.maintainers; [
50 drawbu
51 ryand56
52 ];
53 };
54}