19 buildPythonPackage rec {
20 pname = "trino-python-client";
22 format = "setuptools";
24 src = fetchFromGitHub {
27 rev = "refs/tags/${version}";
28 hash = "sha256-Hl88Keavyp1QBw67AFbevy/btzNs7UlsKQ93K02YgLM=";
35 propagatedBuildInputs = [
41 passthru.optional-dependencies = lib.fix (self: {
48 external-authentication-token-cache = [
51 all = self.kerberos ++ self.sqlalchemy;
57 ] ++ passthru.optional-dependencies.all;
59 pythonImportsCheck = [
64 # these all require a running trino instance
65 "tests/integration/test_types_integration.py"
66 "tests/integration/test_dbapi_integration.py"
67 "tests/integration/test_sqlalchemy_integration.py"
75 changelog = "https://github.com/trinodb/trino-python-client/blob/${version}/CHANGES.md";
76 description = "Client for the Trino distributed SQL Engine";
77 homepage = "https://github.com/trinodb/trino-python-client";
78 license = licenses.asl20;
79 maintainers = with maintainers; [ cpcloud ];