Fabian Affolter 2023-08-25 21:09:26 +02:00
parent 94d494b2f6
commit 468cc6ffd3

View File

@ -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"