python3Packages.vertica-python: switch to pytestCheckHook
This commit is contained in:
parent
b41351d450
commit
1479126ac1
1 changed files with 34 additions and 9 deletions
|
@ -1,27 +1,52 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, future, python-dateutil, six, pytest, mock, parameterized }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, future
|
||||||
|
, mock
|
||||||
|
, parameterized
|
||||||
|
, pytestCheckHook
|
||||||
|
, python-dateutil
|
||||||
|
, pythonOlder
|
||||||
|
, six
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "vertica-python";
|
pname = "vertica-python";
|
||||||
version = "1.0.4";
|
version = "1.0.4";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-IpdrR9mDG+8cNnXgSXkmXahSEP4EGnEBJqZk5SNu9pA=";
|
hash = "sha256-IpdrR9mDG+8cNnXgSXkmXahSEP4EGnEBJqZk5SNu9pA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ future python-dateutil six ];
|
propagatedBuildInputs = [
|
||||||
|
future
|
||||||
|
python-dateutil
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytest mock parameterized ];
|
checkInputs = [
|
||||||
|
mock
|
||||||
|
parameterized
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
# Integration tests require an accessible Vertica db
|
disabledTestPaths = [
|
||||||
checkPhase = ''
|
# Integration tests require an accessible Vertica db
|
||||||
pytest --ignore vertica_python/tests/integration_tests
|
"vertica_python/tests/integration_tests"
|
||||||
'';
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"vertica_python"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Native Python client for Vertica database";
|
description = "Native Python client for Vertica database";
|
||||||
homepage = "https://github.com/vertica/vertica-python";
|
homepage = "https://github.com/vertica/vertica-python";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.arnoldfarkas ];
|
maintainers = with maintainers; [ arnoldfarkas ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue