spotipy: fix build
This commit is contained in:
parent
2f7d440acc
commit
4725db62be
1 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi, requests }:
|
{ stdenv, buildPythonPackage, fetchPypi, requests, six, mock }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "spotipy";
|
pname = "spotipy";
|
||||||
|
@ -9,7 +9,15 @@ buildPythonPackage rec {
|
||||||
sha256 = "d1a85b8831ed60d2290ab9bbba289c548fb9680889757252c02dab2f2327d865";
|
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; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://spotipy.readthedocs.org/";
|
homepage = "https://spotipy.readthedocs.org/";
|
||||||
|
|
Loading…
Reference in a new issue