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