depot/third_party/nixpkgs/pkgs/development/python-modules/pyathena/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

46 lines
901 B
Nix

{ lib
, boto3
, botocore
, buildPythonPackage
, fetchPypi
, pandas
, pythonOlder
, tenacity
}:
buildPythonPackage rec {
pname = "pyathena";
version = "2.14.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "PyAthena";
inherit version;
hash = "sha256-1DeqvlHlOt781nObnPdgZo3JqjwcK8lSREXqUNoKhhU=";
};
propagatedBuildInputs = [
boto3
botocore
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 ];
};
}