2020-11-03 02:18:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
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
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spotipy";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "2.20.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-4mqZt1vi/EI3WytLNV3ET6Hlnvx3OvoXt4ThpMCoGMk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
redis
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
# tests want to access the spotify API
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"spotipy"
|
|
|
|
"spotipy.oauth2"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
meta = with lib; {
|
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
|
|
|
description = "A light weight Python library for the Spotify Web API";
|
|
|
|
license = licenses.mit;
|
2020-11-03 02:18:15 +00:00
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|