pythonPackages.duckdb: cleanup, add import check

This commit is contained in:
Sandro Jäckel 2021-02-15 23:53:04 +01:00
parent 8c80c1e762
commit f14aa7ae8c
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -6,7 +6,7 @@
, pybind11 , pybind11
, setuptools_scm , setuptools_scm
, pytestrunner , pytestrunner
, pytest , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -31,18 +31,10 @@ buildPythonPackage rec {
pytestrunner pytestrunner
]; ];
checkInputs = [ propagatedBuildInputs = [ numpy pandas ];
pytest
];
propagatedBuildInputs = [ checkInputs = [ pytestCheckHook ];
numpy pythonImportsCheck = [ "duckdb" ];
pandas
];
checkPhase = ''
pytest
'';
meta = with lib; { meta = with lib; {
description = "DuckDB is an embeddable SQL OLAP Database Management System"; description = "DuckDB is an embeddable SQL OLAP Database Management System";