2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
boto3,
|
|
|
|
botocore,
|
|
|
|
buildPythonPackage,
|
|
|
|
fastparquet,
|
|
|
|
fetchPypi,
|
|
|
|
fsspec,
|
|
|
|
hatchling,
|
|
|
|
pandas,
|
|
|
|
pyarrow,
|
|
|
|
pythonOlder,
|
|
|
|
sqlalchemy,
|
|
|
|
tenacity,
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyathena";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "3.8.3";
|
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-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-mcYIYOgww4UM0CAcdtOD12pp53clPdDqN85bLRHGDag=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ 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 = {
|
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-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|