summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/crate/default.nix
blob: f0f36c5833d8cb0ac8c90c18b88f3fd18a3cdec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  dask,
  urllib3,
  geojson,
  verlib2,
  pueblo,
  pandas,
  sqlalchemy,
  pytestCheckHook,
  pytz,
  setuptools,
  orjson,
}:

buildPythonPackage rec {
  pname = "crate";
  version = "2.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "crate";
    repo = "crate-python";
    tag = version;
    hash = "sha256-K09jezBINTw4sUl1Xvm4lJa68ZpwMy9ju/pxdRwnaE4=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    orjson
    urllib3
    sqlalchemy
    geojson
    verlib2
    pueblo
  ];

  nativeCheckInputs = [
    dask
    pandas
    pytestCheckHook
    pytz
  ];

  disabledTests = [
    # the following tests require network access
    "test_layer_from_uri"
    "test_additional_settings"
    "test_basic"
    "test_cluster"
    "test_default_settings"
    "test_dynamic_http_port"
    "test_environment_variables"
    "test_verbosity"
  ];

  disabledTestPaths = [
    # imports setuptools.ssl_support, which doesn't exist anymore
    "tests/client/test_http.py"
  ];

  meta = {
    homepage = "https://github.com/crate/crate-python";
    description = "Python client library for CrateDB";
    changelog = "https://github.com/crate/crate-python/blob/${version}/CHANGES.txt";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ doronbehar ];
  };
}