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.24.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-OWr4HmQghlUa8VcnDN/nQsFzlAWHG6nawfplG4ZJ7w0=";
22 };
23
24 propagatedBuildInputs = [
25 redis
26 requests
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}