2020-11-03 02:18:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-11-02 22:02:43 +00:00
|
|
|
, pythonOlder
|
2022-07-14 12:49:19 +00:00
|
|
|
, redis
|
2020-11-03 02:18:15 +00:00
|
|
|
, requests
|
2022-07-14 12:49:19 +00:00
|
|
|
, six
|
2022-11-02 22:02:43 +00:00
|
|
|
, urllib3
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spotipy";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "2.22.0";
|
2022-11-02 22:02:43 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-uLnumxbOJZ49utvHi0DzdgzcTMM9t9kwJS7HkJEhdtA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
redis
|
|
|
|
requests
|
|
|
|
six
|
2022-11-02 22:02:43 +00:00
|
|
|
urllib3
|
2022-07-14 12:49:19 +00:00
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
# Tests want to access the spotify API
|
2020-11-03 02:18:15 +00:00
|
|
|
doCheck = false;
|
2022-11-02 22:02:43 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"spotipy"
|
|
|
|
"spotipy.oauth2"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
meta = with lib; {
|
2022-11-02 22:02:43 +00:00
|
|
|
description = "Library for the Spotify Web API";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://spotipy.readthedocs.org/";
|
2020-11-03 02:18:15 +00:00
|
|
|
changelog = "https://github.com/plamere/spotipy/blob/${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2020-11-03 02:18:15 +00:00
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|