2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
boto3,
|
|
|
|
botocore,
|
|
|
|
buildPythonPackage,
|
|
|
|
fastparquet,
|
|
|
|
fetchPypi,
|
|
|
|
fsspec,
|
|
|
|
hatchling,
|
|
|
|
pandas,
|
|
|
|
pyarrow,
|
2024-09-19 14:19:46 +00:00
|
|
|
python-dateutil,
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonOlder,
|
|
|
|
sqlalchemy,
|
|
|
|
tenacity,
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyathena";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.9.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
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-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-SxHUnfAyVcVW4R9j0ONGzCXqGWdaeseP/QU3vNhMtI8=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ hatchling ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2021-06-28 23:13:55 +00:00
|
|
|
boto3
|
|
|
|
botocore
|
2023-02-09 11:40:11 +00:00
|
|
|
fsspec
|
2021-06-28 23:13:55 +00:00
|
|
|
tenacity
|
2024-09-19 14:19:46 +00:00
|
|
|
python-dateutil
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
pandas = [ pandas ];
|
|
|
|
sqlalchemy = [ sqlalchemy ];
|
|
|
|
arrow = [ pyarrow ];
|
|
|
|
fastparquet = [ fastparquet ];
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pyathena" ];
|
2022-01-22 01:22:15 +00:00
|
|
|
|
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;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|