1{ stdenv, buildPythonPackage, fetchPypi, isPyPy, libiodbc }:
2
3buildPythonPackage rec {
4 pname = "pyodbc";
5 version = "4.0.24";
6 disabled = isPyPy; # use pypypdbc instead
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "4326abb737dec36156998d52324921673d30f575e1e0998f0c5edd7de20e61d4";
11 };
12
13 buildInputs = [ libiodbc ];
14
15 meta = with stdenv.lib; {
16 description = "Python ODBC module to connect to almost any database";
17 homepage = "https://github.com/mkleehammer/pyodbc";
18 license = licenses.mit;
19 platforms = platforms.linux;
20 maintainers = with maintainers; [ bjornfor ];
21 };
22}