2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, boto3
|
|
|
|
, botocore
|
2022-06-26 10:26:21 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-02-09 11:40:11 +00:00
|
|
|
, fsspec
|
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";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "2.23.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 {
|
2023-01-20 10:41:00 +00:00
|
|
|
inherit pname version;
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-6T2qr0fcHzgDPZvc3StZwIH2ZRvTOJFXDLPc3iFmwCQ=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
boto3
|
|
|
|
botocore
|
2023-02-09 11:40:11 +00:00
|
|
|
fsspec
|
2021-06-28 23:13:55 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|