From d10131aa3b9bc7c9cc1af468430e56780e05c8b4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 30 Oct 2022 14:11:40 +0000 Subject: [PATCH 1/2] python310Packages.spotipy: 2.20.0 -> 2.21.0 --- pkgs/development/python-modules/spotipy/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/spotipy/default.nix b/pkgs/development/python-modules/spotipy/default.nix index 8f0b0c13ba8f..3f0d44b18cba 100644 --- a/pkgs/development/python-modules/spotipy/default.nix +++ b/pkgs/development/python-modules/spotipy/default.nix @@ -8,11 +8,11 @@ buildPythonPackage rec { pname = "spotipy"; - version = "2.20.0"; + version = "2.21.0"; src = fetchPypi { inherit pname version; - sha256 = "sha256-4mqZt1vi/EI3WytLNV3ET6Hlnvx3OvoXt4ThpMCoGMk="; + sha256 = "sha256-YhFhqbWqAVaBwu4buIc87i7mtEDYQEDanSpXzWf31eU="; }; propagatedBuildInputs = [ From 3df7f95b0dd350288261b1edf404d63328ef08c2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 30 Oct 2022 18:33:55 +0100 Subject: [PATCH 2/2] python310Packages.spotipy: disable on older Python releases - add missing input --- pkgs/development/python-modules/spotipy/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/spotipy/default.nix b/pkgs/development/python-modules/spotipy/default.nix index 3f0d44b18cba..e81183c02fb3 100644 --- a/pkgs/development/python-modules/spotipy/default.nix +++ b/pkgs/development/python-modules/spotipy/default.nix @@ -1,37 +1,44 @@ { lib , buildPythonPackage , fetchPypi +, pythonOlder , redis , requests , six +, urllib3 }: buildPythonPackage rec { pname = "spotipy"; version = "2.21.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-YhFhqbWqAVaBwu4buIc87i7mtEDYQEDanSpXzWf31eU="; + hash = "sha256-YhFhqbWqAVaBwu4buIc87i7mtEDYQEDanSpXzWf31eU="; }; propagatedBuildInputs = [ redis requests six + urllib3 ]; - # tests want to access the spotify API + # 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"; - description = "A light weight Python library for the Spotify Web API"; license = licenses.mit; maintainers = with maintainers; [ rvolosatovs ]; };