From 7c02bd1fae16824d208d81ba4461f5d5d0ea8537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20B=C3=A4renz?= Date: Mon, 7 Jun 2021 17:35:50 +0200 Subject: [PATCH] pythonPackages.pyathena: init at 2.3.0 --- .../python-modules/pyathena/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/pyathena/default.nix diff --git a/pkgs/development/python-modules/pyathena/default.nix b/pkgs/development/python-modules/pyathena/default.nix new file mode 100644 index 000000000000..c7a8599a048a --- /dev/null +++ b/pkgs/development/python-modules/pyathena/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchPypi +, sqlalchemy +, boto3 +, botocore +, pandas +, tenacity +}: + +buildPythonPackage rec { + pname = "pyathena"; + version = "2.3.0"; + + src = fetchPypi { + pname = "PyAthena"; + inherit version; + sha256 = "08fl653yayvqi991zvcai5ifcxwy9ip6xh0cr3lbimggjnjgwsl5"; + }; + + # Nearly all tests depend on a working AWS Athena instance, + # therefore deactivating them. + # https://github.com/laughingman7743/PyAthena/#testing + doCheck = false; + + propagatedBuildInputs = [ + boto3 + botocore + pandas + tenacity + ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0e284963befd..69a09baaef56 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5494,6 +5494,8 @@ in { pyasn1-modules = callPackage ../development/python-modules/pyasn1-modules { }; + pyathena = callPackage ../development/python-modules/pyathena { }; + pyatmo = callPackage ../development/python-modules/pyatmo { }; pyatspi = callPackage ../development/python-modules/pyatspi { };