depot/third_party/nixpkgs/pkgs/development/python-modules/gspread/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

53 lines
989 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, google-auth
, google-auth-oauthlib
, pytest-vcr
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "gspread";
version = "5.12.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "burnash";
repo = "gspread";
rev = "refs/tags/v${version}";
hash = "sha256-v6kpje5rw3/OfcoMWdSCZdkmETyIJ08cly8lLUt9j64=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
google-auth
google-auth-oauthlib
requests
];
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 = with maintainers; [ ];
};
}