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