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.

46 lines
883 B
Nix
Raw Normal View History

2021-06-07 15:35:50 +00:00
{ lib
, boto3
, botocore
, buildPythonPackage
, fetchPypi
2021-06-07 15:35:50 +00:00
, pandas
, pythonOlder
, tenacity
2021-06-07 15:35:50 +00:00
}:
buildPythonPackage rec {
pname = "pyathena";
version = "2.19.0";
format = "setuptools";
disabled = pythonOlder "3.7";
2021-06-07 15:35:50 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-59NH4HIhgDOxwgSUJq71ewpQTn2sbpNNT9Q3nj8qJss=";
2021-06-07 15:35:50 +00:00
};
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"
];
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/";
license = licenses.mit;
maintainers = with maintainers; [ turion ];
};
}