nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 46 lines 902 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, boto3 5, botocore 6, pandas 7, tenacity 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "pyathena"; 13 version = "2.5.2"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 pname = "PyAthena"; 20 inherit version; 21 sha256 = "sha256-vjoK6lEitvd5vqSEE/ael8q00O05lquKIviFK/bPlVQ="; 22 }; 23 24 propagatedBuildInputs = [ 25 boto3 26 botocore 27 pandas 28 tenacity 29 ]; 30 31 # Nearly all tests depend on a working AWS Athena instance, 32 # therefore deactivating them. 33 # https://github.com/laughingman7743/PyAthena/#testing 34 doCheck = false; 35 36 pythonImportsCheck = [ 37 "pyathena" 38 ]; 39 40 meta = with lib; { 41 homepage = "https://github.com/laughingman7743/PyAthena/"; 42 license = licenses.mit; 43 description = "Python DB API 2.0 (PEP 249) client for Amazon Athena"; 44 maintainers = with maintainers; [ turion ]; 45 }; 46}