1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonRelaxDepsHook
5, python-dateutil
6, poetry-core
7, requests
8}:
9
10buildPythonPackage rec {
11 pname = "tidalapi";
12 version = "0.7.2";
13 format = "pyproject";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-CyyvzhuDB9XgroeP+WPTJIufT3VU9fD6Pg2Q1prB0Mo=";
18 };
19
20 nativeBuildInputs = [
21 poetry-core
22 pythonRelaxDepsHook
23 ];
24
25 pythonRelaxDeps = [
26 "requests"
27 ];
28
29 propagatedBuildInputs = [
30 requests
31 python-dateutil
32 ];
33
34 doCheck = false; # tests require internet access
35
36 pythonImportsCheck = [
37 "tidalapi"
38 ];
39
40 meta = with lib; {
41 changelog = "https://github.com/tamland/python-tidal/releases/tag/v${version}";
42 description = "Unofficial Python API for TIDAL music streaming service";
43 homepage = "https://github.com/tamland/python-tidal";
44 license = licenses.gpl3;
45 maintainers = [ maintainers.rodrgz ];
46 };
47}