nixpkgs/pkgs/development/python-modules/spotipy/default.nix
2021-04-14 23:48:38 +02:00

33 lines
739 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, requests
, six }:
buildPythonPackage rec {
pname = "spotipy";
version = "2.18.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-9yk7gIaWgH6azsa9z/Y/fcw8wbFIwMS0KZ70PJZvcXc=";
};
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 ];
};
}