2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, boto3
|
|
|
|
, botocore
|
2022-06-26 10:26:21 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-28 23:13:55 +00:00
|
|
|
, pandas
|
2022-01-22 01:22:15 +00:00
|
|
|
, pythonOlder
|
2022-06-26 10:26:21 +00:00
|
|
|
, tenacity
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyathena";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "2.14.0";
|
2022-01-22 01:22:15 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "PyAthena";
|
|
|
|
inherit version;
|
2022-08-21 13:32:41 +00:00
|
|
|
hash = "sha256-1DeqvlHlOt781nObnPdgZo3JqjwcK8lSREXqUNoKhhU=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
boto3
|
|
|
|
botocore
|
|
|
|
pandas
|
|
|
|
tenacity
|
|
|
|
];
|
|
|
|
|
2022-01-22 01:22:15 +00:00
|
|
|
# Nearly all tests depend on a working AWS Athena instance,
|
|
|
|
# therefore deactivating them.
|
|
|
|
# https://github.com/laughingman7743/PyAthena/#testing
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyathena"
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
2022-06-26 10:26:21 +00:00
|
|
|
description = "Python DB API 2.0 (PEP 249) client for Amazon Athena";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/laughingman7743/PyAthena/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ turion ];
|
|
|
|
};
|
|
|
|
}
|