From 468cc6ffd3044686ad54a9f25e14b3c106512900 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 25 Aug 2023 21:09:26 +0200 Subject: [PATCH] python311Packages.gspread: 5.9.0 -> 5.10.0 Diff: https://github.com/burnash/gspread/compare/refs/tags/v5.9.0...v5.10.0 Changelog: https://github.com/burnash/gspread/blob/v5.10.0/HISTORY.rst --- .../python-modules/gspread/default.nix | 37 ++++++++++++------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/gspread/default.nix b/pkgs/development/python-modules/gspread/default.nix index 6ac240e4b61..9d05bf5e093 100644 --- a/pkgs/development/python-modules/gspread/default.nix +++ b/pkgs/development/python-modules/gspread/default.nix @@ -1,32 +1,43 @@ { lib , buildPythonPackage -, fetchPypi -, requests +, fetchFromGitHub +, flitBuildHook , google-auth , google-auth-oauthlib +, pytest-vcr +, pytestCheckHook , pythonOlder +, requests }: buildPythonPackage rec { pname = "gspread"; - version = "5.9.0"; - format = "setuptools"; + version = "5.10.0"; + format = "pyproject"; disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-NLl4NLvvrM9ySXcCuuJtEvltBoXkmkGK/mqSqbvLnJw="; + src = fetchFromGitHub { + owner = "burnash"; + repo = "gspread"; + rev = "refs/tags/v${version}"; + hash = "sha256-GAlQYQVuwsnkXqZOvG66f9kig+m392CVlrgUTqrTKyA="; }; - propagatedBuildInputs = [ - requests - google-auth - google-auth-oauthlib + nativeBuildInputs = [ + flitBuildHook ]; - # No tests included - doCheck = false; + propagatedBuildInputs = [ + google-auth + google-auth-oauthlib + requests + ]; + + nativeCheckInputs = [ + pytest-vcr + pytestCheckHook + ]; pythonImportsCheck = [ "gspread"