1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 redis,
7 requests,
8 six,
9 urllib3,
10}:
11
12buildPythonPackage rec {
13 pname = "spotipy";
14 version = "2.23.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-Dfr+CCOdqubBb6po9gtXddQMQRByXhp8VFrUx/tm1Og=";
22 };
23
24 propagatedBuildInputs = [
25 redis
26 requests
27 six
28 urllib3
29 ];
30
31 # Tests want to access the spotify API
32 doCheck = false;
33
34 pythonImportsCheck = [
35 "spotipy"
36 "spotipy.oauth2"
37 ];
38
39 meta = with lib; {
40 description = "Library for the Spotify Web API";
41 homepage = "https://spotipy.readthedocs.org/";
42 changelog = "https://github.com/plamere/spotipy/blob/${version}/CHANGELOG.md";
43 license = licenses.mit;
44 maintainers = with maintainers; [ rvolosatovs ];
45 };
46}