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