33 buildPythonPackage rec {
34 pname = "python-arango";
38 disabled = pythonOlder "3.7";
40 src = fetchFromGitHub {
41 owner = "ArangoDB-Community";
42 repo = "python-arango";
43 rev = "refs/tags/${version}";
44 hash = "sha256-N10ysJKk0jxFyjgR/MXKHVS2MxCQtfFFGEh1IZ2eJk0=";
52 propagatedBuildInputs = [
68 # arangodb is compiled only for particular target architectures
69 # (i.e. "haswell"). Thus, these tests may not pass reproducibly,
70 # failing with: `166: Illegal instruction` if not run on arangodb's
71 # specified architecture.
73 # nonetheless, the client library should remain in nixpkgs - since
74 # the client library will talk to arangodb across the network and
75 # architecture issues will be irrelevant.
78 preCheck = lib.optionalString doCheck ''
80 mkdir -p .nix-test/{data,work}
82 ICU_DATA=${arangodb}/share/arangodb3 \
85 TZ_DATA=${arangodb}/share/arangodb3/tzdata \
86 ARANGO_ROOT_PASSWORD=${testDBOpts.password} \
87 ${arangodb}/bin/arangod \
88 --server.uid=$(id -u) \
89 --server.gid=$(id -g) \
90 --server.authentication=true \
91 --server.endpoint=http+tcp://${testDBOpts.host}:${testDBOpts.port} \
92 --server.descriptors-minimum=4096 \
93 --server.jwt-secret=${testDBOpts.secret} \
94 --javascript.app-path=.nix-test/app \
95 --log.file=.nix-test/log \
96 --database.directory=.nix-test/data \
112 # AssertionError geo-related - try enabling later
113 "test_document_find_in_box"
115 # maybe arangod misconfig - try enabling later
116 # arango.exceptions.JWTAuthError: [HTTP 401][ERR 401] Wrong credentials
119 # ValueError - try enabling later
120 # maybe missed 3.9.3->3.10.0 changes
121 # most caused by key change: isNewlyCreated->new
122 "test_add_hash_index"
123 "test_add_skiplist_index"
124 "test_add_persistent_index"
127 "test_pregel_management"
129 # formatting error - try enabling later
130 # maybe missed 3.9.3->3.10.0 changes
131 # caused by: body["computedValues"] = None
132 "test_permission_management"
133 "test_collection_misc_methods"
134 "test_collection_management"
135 "test_replication_inventory"
137 # want outgoing network to update foxx apis
138 # so foxx.api disabled in arangod startup
139 "test_foxx_service_management_file"
140 "test_foxx_service_management_json"
141 "test_foxx_config_management"
142 "test_foxx_dependency_management"
143 "test_foxx_development_toggle"
144 "test_foxx_misc_functions"
146 # no replication configured via arangod invocation
147 "test_replication_applier"
150 pythonImportsCheck = [
155 description = "Python Driver for ArangoDB";
156 homepage = "https://github.com/ArangoDB-Community/python-arango";
157 changelog = "https://github.com/ArangoDB-Community/python-arango/releases/tag/${version}";
158 license = licenses.mit;
159 maintainers = with maintainers; [ jsoo1 ];