python3Packages.pyathena:: add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2022-01-20 09:16:53 +01:00 committed by GitHub
parent 2f066bd7fc
commit 9372199ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,11 +5,15 @@
, botocore
, pandas
, tenacity
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyathena";
version = "2.4.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "PyAthena";
@ -17,11 +21,6 @@ buildPythonPackage rec {
sha256 = "9d42b4e2cdbd8c48f8157692b50681b08569aa3cac3a9694e671ec9aa40f969b";
};
# Nearly all tests depend on a working AWS Athena instance,
# therefore deactivating them.
# https://github.com/laughingman7743/PyAthena/#testing
doCheck = false;
propagatedBuildInputs = [
boto3
botocore
@ -29,6 +28,15 @@ buildPythonPackage rec {
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; {
homepage = "https://github.com/laughingman7743/PyAthena/";
license = licenses.mit;