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