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