1{ lib, buildPythonPackage, fetchPypi, isPyPy, unixODBC }:
2
3buildPythonPackage rec {
4 pname = "pyodbc";
5 version = "4.0.32";
6 disabled = isPyPy; # use pypypdbc instead
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "9be5f0c3590655e1968488410fe3528bb8023d527e7ccec1f663d64245071a6b";
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}