python39Packages.pyodbc: add import check

This commit is contained in:
Sandro Jäckel 2021-08-26 14:18:23 +02:00
parent 763f92278b
commit 455d2341ff
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -3,7 +3,7 @@
buildPythonPackage rec {
pname = "pyodbc";
version = "4.0.32";
disabled = isPyPy; # use pypypdbc instead
disabled = isPyPy; # use pypypdbc instead
src = fetchPypi {
inherit pname version;
@ -14,6 +14,8 @@ buildPythonPackage rec {
doCheck = false; # tests require a database server
pythonImportsCheck = [ "pyodbc" ];
meta = with lib; {
description = "Python ODBC module to connect to almost any database";
homepage = "https://github.com/mkleehammer/pyodbc";