2021-06-07 15:35:50 +00:00
|
|
|
{ lib
|
|
|
|
, boto3
|
|
|
|
, botocore
|
2022-06-06 17:27:24 +00:00
|
|
|
, buildPythonPackage
|
2023-08-14 06:31:24 +00:00
|
|
|
, fastparquet
|
2022-06-06 17:27:24 +00:00
|
|
|
, fetchPypi
|
2023-02-03 09:17:45 +00:00
|
|
|
, fsspec
|
2021-06-07 15:35:50 +00:00
|
|
|
, pandas
|
2023-08-14 06:31:24 +00:00
|
|
|
, poetry-core
|
|
|
|
, pyarrow
|
2022-01-20 08:16:53 +00:00
|
|
|
, pythonOlder
|
2023-08-14 06:31:24 +00:00
|
|
|
, sqlalchemy
|
2022-06-06 17:27:24 +00:00
|
|
|
, tenacity
|
2021-06-07 15:35:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyathena";
|
2024-01-09 09:03:20 +00:00
|
|
|
version = "3.1.0";
|
2023-08-14 06:31:24 +00:00
|
|
|
format = "pyproject";
|
2022-01-20 08:16:53 +00:00
|
|
|
|
2023-08-14 06:31:24 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-06-07 15:35:50 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-12-30 19:13:33 +00:00
|
|
|
inherit pname version;
|
2024-01-09 09:03:20 +00:00
|
|
|
hash = "sha256-cOTkKKeNzHcqRDfZaXR0CrL75SgH5102H89tuF4L9M4=";
|
2021-06-07 15:35:50 +00:00
|
|
|
};
|
|
|
|
|
2023-08-14 06:31:24 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2021-06-07 15:35:50 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
boto3
|
|
|
|
botocore
|
2023-02-03 09:17:45 +00:00
|
|
|
fsspec
|
2021-06-07 15:35:50 +00:00
|
|
|
tenacity
|
|
|
|
];
|
|
|
|
|
2023-08-14 06:31:24 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
pandas = [
|
|
|
|
pandas
|
|
|
|
];
|
|
|
|
sqlalchemy = [
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
arrow = [
|
|
|
|
pyarrow
|
|
|
|
];
|
|
|
|
fastparquet = [
|
|
|
|
fastparquet
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-01-20 08:16:53 +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-07 15:35:50 +00:00
|
|
|
meta = with lib; {
|
2022-06-06 17:27:24 +00:00
|
|
|
description = "Python DB API 2.0 (PEP 249) client for Amazon Athena";
|
2021-06-07 15:35:50 +00:00
|
|
|
homepage = "https://github.com/laughingman7743/PyAthena/";
|
2023-08-14 06:31:24 +00:00
|
|
|
changelog = "https://github.com/laughingman7743/PyAthena/releases/tag/v${version}";
|
2021-06-07 15:35:50 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ turion ];
|
|
|
|
};
|
|
|
|
}
|