2020-01-27 08:47:40 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, future, dateutil, six, pytest, mock, parameterized }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vertica-python";
|
2020-12-07 07:11:08 +00:00
|
|
|
version = "1.0.1";
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2020-01-27 08:47:40 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:11:08 +00:00
|
|
|
sha256 = "94cff37e03f89fc4c5e4b2d4c913c7d5d7450f5a205d14f709b39e0a4202be95";
|
2020-01-27 08:47:40 +00:00
|
|
|
};
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2020-01-27 08:47:40 +00:00
|
|
|
propagatedBuildInputs = [ future dateutil six ];
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2020-01-27 08:47:40 +00:00
|
|
|
checkInputs = [ pytest mock parameterized ];
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2020-01-27 08:47:40 +00:00
|
|
|
# Integration tests require an accessible Vertica db
|
|
|
|
checkPhase = ''
|
|
|
|
pytest --ignore vertica_python/tests/integration_tests
|
|
|
|
'';
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2020-01-27 08:47:40 +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 ];
|
|
|
|
};
|
|
|
|
}
|