1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, requests
6, tornado
7, poetry-core
8, pytestCheckHook
9, pytest-cov
10, pytest-vcr
11}:
12
13buildPythonPackage rec {
14 pname = "deezer-python";
15 version = "2.2.2";
16 disabled = pythonOlder "3.6";
17 format = "pyproject";
18
19 src = fetchFromGitHub {
20 owner = "browniebroke";
21 repo = pname;
22 rev = "v${version}";
23 sha256 = "1l8l4lxlqsj921gk1mxcilp11jx31addiyd9pk604aldgqma709y";
24 };
25
26 nativeBuildInputs = [
27 poetry-core
28 ];
29
30 checkInputs = [
31 pytestCheckHook
32 pytest-cov
33 pytest-vcr
34 ];
35
36 propagatedBuildInputs = [
37 requests
38 tornado
39 ];
40
41 meta = with lib; {
42 description = "A friendly Python wrapper around the Deezer API";
43 homepage = "https://github.com/browniebroke/deezer-python";
44 license = licenses.mit;
45 maintainers = with maintainers; [ synthetica ];
46 };
47}