depot/third_party/nixpkgs/pkgs/development/python-modules/gspread/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

50 lines
968 B
Nix

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