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-11-02 22:02:43 +00:00
|
|
|
version = "2.21.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-11-02 22:02:43 +00:00
|
|
|
hash = "sha256-YhFhqbWqAVaBwu4buIc87i7mtEDYQEDanSpXzWf31eU=";
|
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
|
|
|
};
|
|
|
|
}
|