diff --git a/pkgs/development/python-modules/pyathena/default.nix b/pkgs/development/python-modules/pyathena/default.nix index 3981f64645d2..e5b507b01143 100644 --- a/pkgs/development/python-modules/pyathena/default.nix +++ b/pkgs/development/python-modules/pyathena/default.nix @@ -2,33 +2,55 @@ , boto3 , botocore , buildPythonPackage +, fastparquet , fetchPypi , fsspec , pandas +, poetry-core +, pyarrow , pythonOlder +, sqlalchemy , tenacity }: buildPythonPackage rec { pname = "pyathena"; - version = "2.23.0"; - format = "setuptools"; + version = "3.0.6"; + format = "pyproject"; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-6T2qr0fcHzgDPZvc3StZwIH2ZRvTOJFXDLPc3iFmwCQ="; + hash = "sha256-7m6hdRNIlCCa8sa+GFm3vkNx93QfqnpY+fl5Bf9qc6Q="; }; + nativeBuildInputs = [ + poetry-core + ]; + propagatedBuildInputs = [ boto3 botocore fsspec - pandas 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 @@ -41,6 +63,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python DB API 2.0 (PEP 249) client for Amazon Athena"; homepage = "https://github.com/laughingman7743/PyAthena/"; + changelog = "https://github.com/laughingman7743/PyAthena/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ turion ]; };