Files
nixpkgs/pkgs/development/python-modules/gspread/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
951 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
google-auth,
google-auth-oauthlib,
pytest-vcr,
pytestCheckHook,
pythonOlder,
strenum,
}:
buildPythonPackage rec {
pname = "gspread";
version = "6.2.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "burnash";
repo = "gspread";
tag = "v${version}";
hash = "sha256-j7UNti5N8c1mjw+1qTPIRCWJ6M4Ur0P9sG1uJnp170M=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
google-auth
google-auth-oauthlib
strenum
];
nativeCheckInputs = [
pytest-vcr
pytestCheckHook
];
pythonImportsCheck = [ "gspread" ];
meta = {
description = "Google Spreadsheets client library";
homepage = "https://github.com/burnash/gspread";
changelog = "https://github.com/burnash/gspread/blob/${src.tag}/HISTORY.rst";
license = lib.licenses.mit;
maintainers = [ ];
};
}