2017-10-29 10:45:46 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPyPy, libiodbc }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyodbc";
|
2018-04-04 19:14:57 +01:00
|
|
|
version = "4.0.23";
|
2017-10-29 10:45:46 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
disabled = isPyPy; # use pypypdbc instead
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 19:14:57 +01:00
|
|
|
sha256 = "bb33d032c1f25781db64e2e4fecf77047fab2ddde42a6cd9496e3c66fb8e9f66";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|