nixpkgs/pkgs/development/python-modules/spotipy/default.nix

29 lines
711 B
Nix
Raw Normal View History

2020-08-27 19:52:38 +01:00
{ stdenv, buildPythonPackage, fetchPypi, requests, six, mock }:
2017-06-11 13:01:10 +01:00
buildPythonPackage rec {
pname = "spotipy";
version = "2.16.0";
2017-06-11 13:01:10 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "315eadd1248053ed336b4d3adbf2e3c32895fdbb0cfcd170542c848c8fd45649";
2017-06-11 13:01:10 +01:00
};
2020-08-27 19:52:38 +01:00
propagatedBuildInputs = [ requests six ];
checkInputs = [ mock ];
preConfigure = ''
substituteInPlace setup.py \
--replace "mock==2.0.0" "mock"
'';
pythonImportsCheck = [ "spotipy" ];
2017-06-11 13:01:10 +01:00
meta = with stdenv.lib; {
homepage = "https://spotipy.readthedocs.org/";
2017-06-11 13:01:10 +01:00
description = "A light weight Python library for the Spotify Web API";
license = licenses.mit;
maintainers = [ maintainers.rvolosatovs ];
};
}