Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / crate / default.nix
blobfe60eceb93c83f764ee826827581e5fc29882ffe
1 { lib
2 , fetchPypi
3 , buildPythonPackage
4 , dask
5 , urllib3
6 , geojson
7 , pandas
8 , pythonOlder
9 , sqlalchemy
10 , pytestCheckHook
11 , pytz
14 buildPythonPackage rec {
15   pname = "crate";
16   version = "0.34.0";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-nEWrfCd2MQCcIM6dLkVYc/cWT5wcT/pvYaY2V3wfuto=";
24   };
26   propagatedBuildInputs = [
27     urllib3
28     sqlalchemy
29     geojson
30   ];
32   nativeCheckInputs = [
33     dask
34     pandas
35     pytestCheckHook
36     pytz
37   ];
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   ];
51   disabledTestPaths = [
52     # imports setuptools.ssl_support, which doesn't exist anymore
53     "src/crate/client/test_http.py"
54   ];
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   };