1{ lib, buildPythonPackage, fetchPypi, isPyPy, unixODBC }: 2 3buildPythonPackage rec { 4 pname = "pyodbc"; 5 version = "4.0.34"; 6 disabled = isPyPy; # use pypypdbc instead 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "sha256-fqeGlTK5a41Smx8I6oV2X5TffkpY6Wiy+NRVNGoD5Fw="; 11 }; 12 13 buildInputs = [ unixODBC ]; 14 15 doCheck = false; # tests require a database server 16 17 pythonImportsCheck = [ "pyodbc" ]; 18 19 meta = with lib; { 20 description = "Python ODBC module to connect to almost any database"; 21 homepage = "https://github.com/mkleehammer/pyodbc"; 22 license = licenses.mit; 23 platforms = platforms.unix; 24 maintainers = with maintainers; [ bjornfor ]; 25 }; 26}