2020-09-25 04:45:31 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, requests, six, mock }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spotipy";
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "2.16.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "315eadd1248053ed336b4d3adbf2e3c32895fdbb0cfcd170542c848c8fd45649";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [ requests six ];
|
|
|
|
checkInputs = [ mock ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "mock==2.0.0" "mock"
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "spotipy" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://spotipy.readthedocs.org/";
|
|
|
|
description = "A light weight Python library for the Spotify Web API";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.rvolosatovs ];
|
|
|
|
};
|
|
|
|
}
|