1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 click,
6 httpretty,
7 pytestCheckHook,
8 requests,
9 requests-kerberos,
10 setuptools,
11 six,
12}:
13
14buildPythonPackage rec {
15 pname = "presto-python-client";
16 version = "0.8.4";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "prestodb";
21 repo = "presto-python-client";
22 tag = version;
23 hash = "sha256-ZpVcmX6jRu4PJ1RxtIR8i0EpfhhhP8HZVVkB7CWLrsM=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 click
30 requests
31 requests-kerberos
32 six
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 httpretty
38 ];
39
40 # Integration tests require network access
41 disabledTestPaths = [ "integration_tests" ];
42
43 pythonImportsCheck = [ "prestodb" ];
44
45 meta = {
46 description = "Client for Presto (https://prestodb.io), a distributed SQL engine for interactive and batch big data processing";
47 homepage = "https://github.com/prestodb/presto-python-client";
48 changelog = "https://github.com/prestodb/presto-python-client/releases/tag/${version}";
49 license = lib.licenses.asl20;
50 maintainers = with lib.maintainers; [ jherland ];
51 };
52}