1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 future,
6 mock,
7 parameterized,
8 pytestCheckHook,
9 python-dateutil,
10 pythonOlder,
11 six,
12}:
13
14buildPythonPackage rec {
15 pname = "vertica-python";
16 version = "1.3.8";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-5SuJT8Mu/4MnAmTWb9TL5b0f0Hug2n70X5BhZME2vrw=";
24 };
25
26 propagatedBuildInputs = [
27 future
28 python-dateutil
29 six
30 ];
31
32 nativeCheckInputs = [
33 mock
34 parameterized
35 pytestCheckHook
36 ];
37
38 disabledTestPaths = [
39 # Integration tests require an accessible Vertica db
40 "vertica_python/tests/integration_tests"
41 ];
42
43 pythonImportsCheck = [ "vertica_python" ];
44
45 meta = with lib; {
46 description = "Native Python client for Vertica database";
47 homepage = "https://github.com/vertica/vertica-python";
48 changelog = "https://github.com/vertica/vertica-python/releases/tag/${version}";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ arnoldfarkas ];
51 };
52}