2018-09-15 23:13:51 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPyPy, unixODBC }:
|
2017-10-29 11:45:46 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyodbc";
|
2019-08-20 16:29:33 +02:00
|
|
|
version = "4.0.27";
|
2017-10-29 11:45:46 +01:00
|
|
|
disabled = isPyPy; # use pypypdbc instead
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-08-20 16:29:33 +02:00
|
|
|
sha256 = "1kd2i7hc1330cli72vawzby17c3039cqn1aba4i0zrjnpghjhmib";
|
2017-10-29 11:45:46 +01:00
|
|
|
};
|
|
|
|
|
2018-09-15 23:13:51 +02:00
|
|
|
buildInputs = [ unixODBC ];
|
|
|
|
|
|
|
|
doCheck = false; # tests require a database server
|
2017-10-29 11:45:46 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python ODBC module to connect to almost any database";
|
|
|
|
homepage = "https://github.com/mkleehammer/pyodbc";
|
|
|
|
license = licenses.mit;
|
2019-02-17 14:00:33 +01:00
|
|
|
platforms = platforms.unix;
|
2017-10-29 11:45:46 +01:00
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
};
|
|
|
|
}
|