2021-07-04 02:40:35 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, future, python-dateutil, six, pytest, mock, parameterized }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vertica-python";
|
2022-01-23 02:10:13 +00:00
|
|
|
version = "1.0.3";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-23 02:10:13 +00:00
|
|
|
sha256 = "cfe1794c5ba9fdfbd470a55d82f60c2e08e129828367753bf64199a58a539bc2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
propagatedBuildInputs = [ future python-dateutil six ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [ pytest mock parameterized ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Integration tests require an accessible Vertica db
|
|
|
|
checkPhase = ''
|
|
|
|
pytest --ignore vertica_python/tests/integration_tests
|
|
|
|
'';
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Native Python client for Vertica database";
|
|
|
|
homepage = "https://github.com/vertica/vertica-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.arnoldfarkas ];
|
|
|
|
};
|
|
|
|
}
|