2020-10-26 00:49:30 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, six }:
|
2017-06-11 14:01:10 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spotipy";
|
2020-10-26 00:38:16 +01:00
|
|
|
version = "2.16.1";
|
2017-06-11 14:01:10 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-26 00:38:16 +01:00
|
|
|
sha256 = "1f50xczv8kgly6wz6zrvqzwdj6nvhdlgx8wnrhmbipjrb6qacr25";
|
2017-06-11 14:01:10 +02:00
|
|
|
};
|
|
|
|
|
2020-08-27 20:52:38 +02:00
|
|
|
propagatedBuildInputs = [ requests six ];
|
|
|
|
|
2020-10-26 00:49:30 +01:00
|
|
|
# tests want to access the spotify API
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"spotipy"
|
|
|
|
"spotipy.oauth2"
|
|
|
|
];
|
2020-08-27 20:52:38 +02:00
|
|
|
|
2020-10-26 00:49:30 +01:00
|
|
|
meta = with lib; {
|
2020-03-03 14:09:48 +01:00
|
|
|
homepage = "https://spotipy.readthedocs.org/";
|
2020-10-26 00:49:30 +01:00
|
|
|
changelog = "https://github.com/plamere/spotipy/blob/${version}/CHANGELOG.md";
|
2017-06-11 14:01:10 +02:00
|
|
|
description = "A light weight Python library for the Spotify Web API";
|
|
|
|
license = licenses.mit;
|
2020-10-26 00:49:30 +01:00
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
2017-06-11 14:01:10 +02:00
|
|
|
};
|
|
|
|
}
|