2017-10-29 10:45:46 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPyPy, libiodbc }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyodbc";
|
2017-11-05 12:16:18 +00:00
|
|
|
version = "4.0.21";
|
2017-10-29 10:45:46 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
disabled = isPyPy; # use pypypdbc instead
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-11-05 12:16:18 +00:00
|
|
|
sha256 = "9655f84ca9e5cb2dfffff705601017420c840d55271ba62dd44f05383eff0329";
|
2017-10-29 10:45:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libiodbc ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|