2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
redis,
|
|
|
|
requests,
|
|
|
|
urllib3,
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spotipy";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "2.24.0";
|
2022-11-02 22:02:43 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-OWr4HmQghlUa8VcnDN/nQsFzlAWHG6nawfplG4ZJ7w0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
redis
|
|
|
|
requests
|
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
|
|
|
};
|
|
|
|
}
|