depot/third_party/nixpkgs/pkgs/development/python-modules/spotipy/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

45 lines
838 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, redis
, requests
, six
, urllib3
}:
buildPythonPackage rec {
pname = "spotipy";
version = "2.22.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-uLnumxbOJZ49utvHi0DzdgzcTMM9t9kwJS7HkJEhdtA=";
};
propagatedBuildInputs = [
redis
requests
six
urllib3
];
# Tests want to access the spotify API
doCheck = false;
pythonImportsCheck = [
"spotipy"
"spotipy.oauth2"
];
meta = with lib; {
description = "Library for the Spotify Web API";
homepage = "https://spotipy.readthedocs.org/";
changelog = "https://github.com/plamere/spotipy/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ rvolosatovs ];
};
}