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