8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
46 lines
902 B
Nix
46 lines
902 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, boto3
|
|
, botocore
|
|
, pandas
|
|
, tenacity
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyathena";
|
|
version = "2.5.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "PyAthena";
|
|
inherit version;
|
|
sha256 = "sha256-GTcDiDtZGgTpdl6YBgPuztv7heEPZ/ymhup/4JwfELA=";
|
|
};
|
|
|
|
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; {
|
|
homepage = "https://github.com/laughingman7743/PyAthena/";
|
|
license = licenses.mit;
|
|
description = "Python DB API 2.0 (PEP 249) client for Amazon Athena";
|
|
maintainers = with maintainers; [ turion ];
|
|
};
|
|
}
|