spotipy: fix build

This commit is contained in:
georgewhewell 2020-08-27 19:52:38 +01:00 committed by Jon
parent 2f7d440acc
commit 4725db62be

View file

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, requests }:
{ stdenv, buildPythonPackage, fetchPypi, requests, six, mock }:
buildPythonPackage rec {
pname = "spotipy";
@ -9,7 +9,15 @@ buildPythonPackage rec {
sha256 = "d1a85b8831ed60d2290ab9bbba289c548fb9680889757252c02dab2f2327d865";
};
propagatedBuildInputs = [ requests ];
propagatedBuildInputs = [ requests six ];
checkInputs = [ mock ];
preConfigure = ''
substituteInPlace setup.py \
--replace "mock==2.0.0" "mock"
'';
pythonImportsCheck = [ "spotipy" ];
meta = with stdenv.lib; {
homepage = "https://spotipy.readthedocs.org/";