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