bba55970ba
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
32 lines
739 B
Nix
32 lines
739 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, requests
|
|
, six }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "spotipy";
|
|
version = "2.17.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-KcYMi5naHEufDXIhabwx5iS4wH1xhrjq3ZwC6NLULL8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests six ];
|
|
|
|
# tests want to access the spotify API
|
|
doCheck = false;
|
|
pythonImportsCheck = [
|
|
"spotipy"
|
|
"spotipy.oauth2"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://spotipy.readthedocs.org/";
|
|
changelog = "https://github.com/plamere/spotipy/blob/${version}/CHANGELOG.md";
|
|
description = "A light weight Python library for the Spotify Web API";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
|
};
|
|
}
|