1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 google-auth,
7 google-auth-oauthlib,
8 pytest-vcr,
9 pytestCheckHook,
10 pythonOlder,
11 strenum,
12}:
13
14buildPythonPackage rec {
15 pname = "gspread";
16 version = "6.2.1";
17 format = "pyproject";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "burnash";
23 repo = "gspread";
24 tag = "v${version}";
25 hash = "sha256-j7UNti5N8c1mjw+1qTPIRCWJ6M4Ur0P9sG1uJnp170M=";
26 };
27
28 nativeBuildInputs = [ flit-core ];
29
30 propagatedBuildInputs = [
31 google-auth
32 google-auth-oauthlib
33 strenum
34 ];
35
36 nativeCheckInputs = [
37 pytest-vcr
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [ "gspread" ];
42
43 meta = with lib; {
44 description = "Google Spreadsheets client library";
45 homepage = "https://github.com/burnash/gspread";
46 changelog = "https://github.com/burnash/gspread/blob/${src.tag}/HISTORY.rst";
47 license = licenses.mit;
48 maintainers = [ ];
49 };
50}