Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 28 lines 711 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, requests, six, mock }: 2 3buildPythonPackage rec { 4 pname = "spotipy"; 5 version = "2.13.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "d1a85b8831ed60d2290ab9bbba289c548fb9680889757252c02dab2f2327d865"; 10 }; 11 12 propagatedBuildInputs = [ requests six ]; 13 checkInputs = [ mock ]; 14 15 preConfigure = '' 16 substituteInPlace setup.py \ 17 --replace "mock==2.0.0" "mock" 18 ''; 19 20 pythonImportsCheck = [ "spotipy" ]; 21 22 meta = with stdenv.lib; { 23 homepage = "https://spotipy.readthedocs.org/"; 24 description = "A light weight Python library for the Spotify Web API"; 25 license = licenses.mit; 26 maintainers = [ maintainers.rvolosatovs ]; 27 }; 28}