mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
45 lines
833 B
Nix
45 lines
833 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
redis,
|
|
requests,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "spotipy";
|
|
version = "2.24.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-OWr4HmQghlUa8VcnDN/nQsFzlAWHG6nawfplG4ZJ7w0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
redis
|
|
requests
|
|
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 ];
|
|
};
|
|
}
|