forked from mirrors/nixpkgs
29 lines
711 B
Nix
29 lines
711 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, requests, six, mock }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "spotipy";
|
|
version = "2.13.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "d1a85b8831ed60d2290ab9bbba289c548fb9680889757252c02dab2f2327d865";
|
|
};
|
|
|
|
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/";
|
|
description = "A light weight Python library for the Spotify Web API";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.rvolosatovs ];
|
|
};
|
|
}
|