1{ lib
2, fetchPypi
3, buildPythonPackage
4, dask
5, urllib3
6, geojson
7, pandas
8, pythonOlder
9, sqlalchemy
10, pytestCheckHook
11, pytz
12}:
13
14buildPythonPackage rec {
15 pname = "crate";
16 version = "0.34.0";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-nEWrfCd2MQCcIM6dLkVYc/cWT5wcT/pvYaY2V3wfuto=";
24 };
25
26 propagatedBuildInputs = [
27 urllib3
28 sqlalchemy
29 geojson
30 ];
31
32 nativeCheckInputs = [
33 dask
34 pandas
35 pytestCheckHook
36 pytz
37 ];
38
39 disabledTests = [
40 # the following tests require network access
41 "test_layer_from_uri"
42 "test_additional_settings"
43 "test_basic"
44 "test_cluster"
45 "test_default_settings"
46 "test_dynamic_http_port"
47 "test_environment_variables"
48 "test_verbosity"
49 ];
50
51 disabledTestPaths = [
52 # imports setuptools.ssl_support, which doesn't exist anymore
53 "src/crate/client/test_http.py"
54 ];
55
56 meta = with lib; {
57 homepage = "https://github.com/crate/crate-python";
58 description = "A Python client library for CrateDB";
59 changelog = "https://github.com/crate/crate-python/blob/${version}/CHANGES.txt";
60 license = licenses.asl20;
61 maintainers = with maintainers; [ doronbehar ];
62 };
63}