git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.vertica-python: switch to pytestCheckHook
commit1479126ac1af2751cbcefea3e13ee989ea8ed022 authorFabian Affolter <mail@fabian-affolter.ch> dateThu 24 Mar 2022, 19:14 (5 years ago) parentb41351d
1 file changed+34−9
pkgs/development/python-modules/vertica-python/default.nix+34−9
pkgs/development/python-modules/vertica-python/default.nix+34−9
@@ -1,27 +1,52 @@
1−{ lib, buildPythonPackage, fetchPypi, future, python-dateutil, six, pytest, mock, parameterized }:
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, future
5+, mock
6+, parameterized
7+, pytestCheckHook
8+, python-dateutil
9+, pythonOlder
10+, six
11+}:
212
313buildPythonPackage rec {
414 pname = "vertica-python";
515 version = "1.0.4";
16+ format = "setuptools";
17+
18+ disabled = pythonOlder "3.7";
619
720 src = fetchPypi {
821 inherit pname version;
9− sha256 = "sha256-IpdrR9mDG+8cNnXgSXkmXahSEP4EGnEBJqZk5SNu9pA=";
22+ hash = "sha256-IpdrR9mDG+8cNnXgSXkmXahSEP4EGnEBJqZk5SNu9pA=";
1023 };
1124
12− propagatedBuildInputs = [ future python-dateutil six ];
25+ propagatedBuildInputs = [
26+ future
27+ python-dateutil
28+ six
29+ ];
30+
31+ checkInputs = [
32+ mock
33+ parameterized
34+ pytestCheckHook
35+ ];
1336
14− checkInputs = [ pytest mock parameterized ];
37+ disabledTestPaths = [
38+ # Integration tests require an accessible Vertica db
39+ "vertica_python/tests/integration_tests"
40+ ];
1541
16− # Integration tests require an accessible Vertica db
17− checkPhase = ''
18− pytest --ignore vertica_python/tests/integration_tests
19− '';
42+ pythonImportsCheck = [
43+ "vertica_python"
44+ ];
2045
2146 meta = with lib; {
2247 description = "Native Python client for Vertica database";
2348 homepage = "https://github.com/vertica/vertica-python";
2449 license = licenses.asl20;
25− maintainers = [ maintainers.arnoldfarkas ];
50+ maintainers = with maintainers; [ arnoldfarkas ];
2651 };
2752}