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