20 buildPythonPackage rec {
21 pname = "trino-python-client";
23 format = "setuptools";
25 src = fetchFromGitHub {
28 rev = "refs/tags/${version}";
29 hash = "sha256-Hl88Keavyp1QBw67AFbevy/btzNs7UlsKQ93K02YgLM=";
32 nativeBuildInputs = [ setuptools ];
34 propagatedBuildInputs = [
40 optional-dependencies = lib.fix (self: {
41 kerberos = [ requests-kerberos ];
42 sqlalchemy = [ sqlalchemy ];
43 external-authentication-token-cache = [ keyring ];
44 all = self.kerberos ++ self.sqlalchemy;
50 ] ++ optional-dependencies.all;
52 pythonImportsCheck = [ "trino" ];
55 # these all require a running trino instance
56 "tests/integration/test_types_integration.py"
57 "tests/integration/test_dbapi_integration.py"
58 "tests/integration/test_sqlalchemy_integration.py"
61 pytestFlagsArray = [ "-k 'not auth'" ];
64 changelog = "https://github.com/trinodb/trino-python-client/blob/${version}/CHANGES.md";
65 description = "Client for the Trino distributed SQL Engine";
66 homepage = "https://github.com/trinodb/trino-python-client";
67 license = licenses.asl20;
68 maintainers = with maintainers; [ cpcloud ];