depot/third_party/nixpkgs/pkgs/development/python-modules/pyathena/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

45 lines
883 B
Nix

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