Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyathena / default.nix
blob00c4fd2bd8740968ed38f6241135abba33eb06bf
1 { lib
2 , boto3
3 , botocore
4 , buildPythonPackage
5 , fastparquet
6 , fetchPypi
7 , fsspec
8 , hatchling
9 , pandas
10 , pyarrow
11 , pythonOlder
12 , sqlalchemy
13 , tenacity
16 buildPythonPackage rec {
17   pname = "pyathena";
18   version = "3.7.0";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-PqIrXLsdi4jAE7K5WUFuTdRPs29GLUefNQlU6hzrLWI=";
26   };
28   nativeBuildInputs = [
29     hatchling
30   ];
32   propagatedBuildInputs = [
33     boto3
34     botocore
35     fsspec
36     tenacity
37   ];
39   passthru.optional-dependencies = {
40     pandas = [
41       pandas
42     ];
43     sqlalchemy = [
44       sqlalchemy
45     ];
46     arrow = [
47       pyarrow
48     ];
49     fastparquet = [
50       fastparquet
51     ];
52   };
54   # Nearly all tests depend on a working AWS Athena instance,
55   # therefore deactivating them.
56   # https://github.com/laughingman7743/PyAthena/#testing
57   doCheck = false;
59   pythonImportsCheck = [
60     "pyathena"
61   ];
63   meta = with lib; {
64     description = "Python DB API 2.0 (PEP 249) client for Amazon Athena";
65     homepage = "https://github.com/laughingman7743/PyAthena/";
66     changelog = "https://github.com/laughingman7743/PyAthena/releases/tag/v${version}";
67     license = licenses.mit;
68     maintainers = with maintainers; [ turion ];
69   };