1{ lib
2, boto3
3, botocore
4, buildPythonPackage
5, fetchPypi
6, fsspec
7, pandas
8, pythonOlder
9, tenacity
10}:
11
12buildPythonPackage rec {
13 pname = "pyathena";
14 version = "2.23.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-6T2qr0fcHzgDPZvc3StZwIH2ZRvTOJFXDLPc3iFmwCQ=";
22 };
23
24 propagatedBuildInputs = [
25 boto3
26 botocore
27 fsspec
28 pandas
29 tenacity
30 ];
31
32 # Nearly all tests depend on a working AWS Athena instance,
33 # therefore deactivating them.
34 # https://github.com/laughingman7743/PyAthena/#testing
35 doCheck = false;
36
37 pythonImportsCheck = [
38 "pyathena"
39 ];
40
41 meta = with lib; {
42 description = "Python DB API 2.0 (PEP 249) client for Amazon Athena";
43 homepage = "https://github.com/laughingman7743/PyAthena/";
44 license = licenses.mit;
45 maintainers = with maintainers; [ turion ];
46 };
47}