2018-09-15 22:13:51 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPyPy, unixODBC }:
|
2017-10-29 10:45:46 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyodbc";
|
2018-08-25 06:49:02 +01:00
|
|
|
version = "4.0.24";
|
2017-10-29 10:45:46 +00:00
|
|
|
disabled = isPyPy; # use pypypdbc instead
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-25 06:49:02 +01:00
|
|
|
sha256 = "4326abb737dec36156998d52324921673d30f575e1e0998f0c5edd7de20e61d4";
|
2017-10-29 10:45:46 +00:00
|
|
|
};
|
|
|
|
|
2018-09-15 22:13:51 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|