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