2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 21:46:14 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-08-17 16:56:33 +01:00
|
|
|
, requests
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-auth
|
2020-08-23 22:08:22 +01:00
|
|
|
, google-auth-oauthlib
|
2022-09-01 04:26:23 +01:00
|
|
|
, pythonOlder
|
2018-10-16 21:46:14 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gspread";
|
2022-12-07 10:01:28 +00:00
|
|
|
version = "5.7.2";
|
2022-09-01 04:26:23 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-10-16 21:46:14 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-07 10:01:28 +00:00
|
|
|
hash = "sha256-znb5wWuIzLeSNQFCIkpZr6jmn3Rj89NBcUjL6JLvx8s=";
|
2018-10-16 21:46:14 +01:00
|
|
|
};
|
|
|
|
|
2022-09-01 04:26:23 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
google-auth
|
|
|
|
google-auth-oauthlib
|
|
|
|
];
|
|
|
|
|
|
|
|
# No tests included
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"gspread"
|
|
|
|
];
|
2019-08-17 16:56:33 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 21:46:14 +01:00
|
|
|
description = "Google Spreadsheets client library";
|
|
|
|
homepage = "https://github.com/burnash/gspread";
|
2022-12-07 10:13:24 +00:00
|
|
|
changelog = "https://github.com/burnash/gspread/blob/v${version}/HISTORY.rst";
|
2018-10-16 21:46:14 +01:00
|
|
|
license = licenses.mit;
|
2022-09-01 04:26:23 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-16 21:46:14 +01:00
|
|
|
};
|
|
|
|
}
|