mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-11 06:34:13 +00:00
python310Packages.spotipy: disable on older Python releases
- add missing input
This commit is contained in:
parent
d10131aa3b
commit
3df7f95b0d
@ -1,37 +1,44 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, pythonOlder
|
||||||
, redis
|
, redis
|
||||||
, requests
|
, requests
|
||||||
, six
|
, six
|
||||||
|
, urllib3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "spotipy";
|
pname = "spotipy";
|
||||||
version = "2.21.0";
|
version = "2.21.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-YhFhqbWqAVaBwu4buIc87i7mtEDYQEDanSpXzWf31eU=";
|
hash = "sha256-YhFhqbWqAVaBwu4buIc87i7mtEDYQEDanSpXzWf31eU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
redis
|
redis
|
||||||
requests
|
requests
|
||||||
six
|
six
|
||||||
|
urllib3
|
||||||
];
|
];
|
||||||
|
|
||||||
# tests want to access the spotify API
|
# Tests want to access the spotify API
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"spotipy"
|
"spotipy"
|
||||||
"spotipy.oauth2"
|
"spotipy.oauth2"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Library for the Spotify Web API";
|
||||||
homepage = "https://spotipy.readthedocs.org/";
|
homepage = "https://spotipy.readthedocs.org/";
|
||||||
changelog = "https://github.com/plamere/spotipy/blob/${version}/CHANGELOG.md";
|
changelog = "https://github.com/plamere/spotipy/blob/${version}/CHANGELOG.md";
|
||||||
description = "A light weight Python library for the Spotify Web API";
|
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ rvolosatovs ];
|
maintainers = with maintainers; [ rvolosatovs ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user