depot/third_party/nixpkgs/pkgs/development/python-modules/pyathena/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

46 lines
902 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, boto3
, botocore
, pandas
, tenacity
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyathena";
version = "2.5.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "PyAthena";
inherit version;
sha256 = "sha256-vjoK6lEitvd5vqSEE/ael8q00O05lquKIviFK/bPlVQ=";
};
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 ];
};
}