2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, boto3
|
|
|
|
, botocore
|
2022-06-26 10:26:21 +00:00
|
|
|
, buildPythonPackage
|
2023-08-22 20:05:09 +00:00
|
|
|
, fastparquet
|
2022-06-26 10:26:21 +00:00
|
|
|
, fetchPypi
|
2023-02-09 11:40:11 +00:00
|
|
|
, fsspec
|
2024-04-21 15:54:59 +00:00
|
|
|
, hatchling
|
2021-06-28 23:13:55 +00:00
|
|
|
, pandas
|
2023-08-22 20:05:09 +00:00
|
|
|
, pyarrow
|
2022-01-22 01:22:15 +00:00
|
|
|
, pythonOlder
|
2023-08-22 20:05:09 +00:00
|
|
|
, sqlalchemy
|
2022-06-26 10:26:21 +00:00
|
|
|
, tenacity
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyathena";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.6.0";
|
|
|
|
pyproject = true;
|
2022-01-22 01:22:15 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-01-20 10:41:00 +00:00
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-2jf7mw/cTS5xW3GLZYk60uULUIIlk01on4942Ow2rwY=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
hatchling
|
2023-08-22 20:05:09 +00:00
|
|
|
];
|
|
|
|
|
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
|
|
|
tenacity
|
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
pandas = [
|
|
|
|
pandas
|
|
|
|
];
|
|
|
|
sqlalchemy = [
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
arrow = [
|
|
|
|
pyarrow
|
|
|
|
];
|
|
|
|
fastparquet = [
|
|
|
|
fastparquet
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
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/";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/laughingman7743/PyAthena/releases/tag/v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ turion ];
|
|
|
|
};
|
|
|
|
}
|