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