Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchPypi, future, python-dateutil, six, pytest, mock, parameterized }:
2
3buildPythonPackage rec {
4 pname = "vertica-python";
5 version = "1.0.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "ce0abfc5909d06031dc612ec321d7f75df50bcb47a31e14e882a299cea2ea7a3";
10 };
11
12 propagatedBuildInputs = [ future python-dateutil six ];
13
14 checkInputs = [ pytest mock parameterized ];
15
16 # Integration tests require an accessible Vertica db
17 checkPhase = ''
18 pytest --ignore vertica_python/tests/integration_tests
19 '';
20
21 meta = with lib; {
22 description = "Native Python client for Vertica database";
23 homepage = "https://github.com/vertica/vertica-python";
24 license = licenses.asl20;
25 maintainers = [ maintainers.arnoldfarkas ];
26 };
27}