nixpkgs/pkgs/development/python-modules/pyathena/default.nix
2023-02-16 10:06:22 +01:00

48 lines
903 B
Nix

{ lib
, boto3
, botocore
, buildPythonPackage
, fetchPypi
, fsspec
, pandas
, pythonOlder
, tenacity
}:
buildPythonPackage rec {
pname = "pyathena";
version = "2.23.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-6T2qr0fcHzgDPZvc3StZwIH2ZRvTOJFXDLPc3iFmwCQ=";
};
propagatedBuildInputs = [
boto3
botocore
fsspec
pandas
tenacity
];
# Nearly all tests depend on a working AWS Athena instance,
# therefore deactivating them.
# https://github.com/laughingman7743/PyAthena/#testing
doCheck = false;
pythonImportsCheck = [
"pyathena"
];
meta = with lib; {
description = "Python DB API 2.0 (PEP 249) client for Amazon Athena";
homepage = "https://github.com/laughingman7743/PyAthena/";
license = licenses.mit;
maintainers = with maintainers; [ turion ];
};
}