depot/third_party/nixpkgs/pkgs/development/python-modules/spotipy/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

45 lines
838 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, redis
, requests
, six
, urllib3
}:
buildPythonPackage rec {
pname = "spotipy";
version = "2.23.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Dfr+CCOdqubBb6po9gtXddQMQRByXhp8VFrUx/tm1Og=";
};
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 ];
};
}