nixpkgs/pkgs/development/python-modules/pyathena/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
1.2 KiB
Nix
Raw Normal View History

2021-06-07 15:35:50 +00:00
{ lib
, boto3
, botocore
, buildPythonPackage
, fastparquet
, fetchPypi
, fsspec
2021-06-07 15:35:50 +00:00
, pandas
, poetry-core
, pyarrow
, pythonOlder
, sqlalchemy
, tenacity
2021-06-07 15:35:50 +00:00
}:
buildPythonPackage rec {
pname = "pyathena";
version = "3.1.0";
format = "pyproject";
disabled = pythonOlder "3.8";
2021-06-07 15:35:50 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-cOTkKKeNzHcqRDfZaXR0CrL75SgH5102H89tuF4L9M4=";
2021-06-07 15:35:50 +00:00
};
nativeBuildInputs = [
poetry-core
];
2021-06-07 15:35:50 +00:00
propagatedBuildInputs = [
boto3
botocore
fsspec
2021-06-07 15:35:50 +00:00
tenacity
];
passthru.optional-dependencies = {
pandas = [
pandas
];
sqlalchemy = [
sqlalchemy
];
arrow = [
pyarrow
];
fastparquet = [
fastparquet
];
};
# Nearly all tests depend on a working AWS Athena instance,
# therefore deactivating them.
# https://github.com/laughingman7743/PyAthena/#testing
doCheck = false;
pythonImportsCheck = [
"pyathena"
];
2021-06-07 15:35:50 +00:00
meta = with lib; {
description = "Python DB API 2.0 (PEP 249) client for Amazon Athena";
2021-06-07 15:35:50 +00:00
homepage = "https://github.com/laughingman7743/PyAthena/";
changelog = "https://github.com/laughingman7743/PyAthena/releases/tag/v${version}";
2021-06-07 15:35:50 +00:00
license = licenses.mit;
maintainers = with maintainers; [ turion ];
};
}