2020-08-27 19:52:38 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, requests, six, mock }:
|
2017-06-11 13:01:10 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spotipy";
|
2020-08-16 18:31:16 +01:00
|
|
|
version = "2.13.0";
|
2017-06-11 13:01:10 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:16 +01:00
|
|
|
sha256 = "d1a85b8831ed60d2290ab9bbba289c548fb9680889757252c02dab2f2327d865";
|
2017-06-11 13:01:10 +01:00
|
|
|
};
|
|
|
|
|
2020-08-27 19:52:38 +01:00
|
|
|
propagatedBuildInputs = [ requests six ];
|
|
|
|
checkInputs = [ mock ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "mock==2.0.0" "mock"
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "spotipy" ];
|
2017-06-11 13:01:10 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-03-03 13:09:48 +00:00
|
|
|
homepage = "https://spotipy.readthedocs.org/";
|
2017-06-11 13:01:10 +01:00
|
|
|
description = "A light weight Python library for the Spotify Web API";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.rvolosatovs ];
|
|
|
|
};
|
|
|
|
}
|