git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.ibis-framework: use pytestCheckHook
commit7965b464ed1bafde3be96c771f78295c3a0ee68e authorPhillip Cloud <417981+cpcloud@users.noreply.github.com> dateFri 21 Jan 2022, 16:22 (5 years ago) parent5c7f80c
1 file changed+9−14
pkgs/development/python-modules/ibis-framework/default.nix+9−14
pkgs/development/python-modules/ibis-framework/default.nix+9−14
@@ -2,6 +2,7 @@
22, buildPythonPackage
33, fetchFromGitHub
44, pythonOlder
5+, pytestCheckHook
56, atpublic
67, cached-property
78, clickhouse-driver
@@ -77,6 +78,7 @@ buildPythonPackage rec {
7778 ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
7879
7980 checkInputs = [
81+ pytestCheckHook
8082 click
8183 pytest
8284 pytest-mock
@@ -99,6 +101,13 @@ buildPythonPackage rec {
99101 "test_summary_non_numeric_group_by"
100102 ];
101103
104+ pytestFlagsArray = [
105+ "--numprocesses $NIX_BUILD_CORES"
106+ "ibis/tests"
107+ "ibis/backends/tests"
108+ "ibis/backends/{${lib.concatStringsSep "," backends}}/tests"
109+ ];
110+
102111 preCheck = ''
103112 set -euo pipefail
104113
@@ -121,20 +130,6 @@ buildPythonPackage rec {
121130 export PYTEST_BACKENDS="${backendsString}"
122131 '';
123132
124− checkPhase = ''
125− set -euo pipefail
126−
127− runHook preCheck
128−
129− pytest --numprocesses auto \
130− ibis/tests \
131− ibis/backends/tests \
132− ibis/backends/{${lib.concatStringsSep "," backends}}/tests \
133− -k '${lib.concatMapStringsSep " and " (test: "not ${test}") disabledTests}'
134−
135− runHook postCheck
136− '';
137−
138133 pythonImportsCheck = [ "ibis" ] ++ (map (backend: "ibis.backends.${backend}") backends);
139134
140135 meta = with lib; {