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";
|
2019-04-02 19:00:36 +01:00
|
|
|
version = "4.0.26";
|
2017-10-29 10:45:46 +00:00
|
|
|
disabled = isPyPy; # use pypypdbc instead
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-02 19:00:36 +01:00
|
|
|
sha256 = "1qrxnf7ji5hml7z4y669k4wmk3iz2pcsr05bnn1n912asash09z5";
|
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;
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2017-10-29 10:45:46 +00:00
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
};
|
|
|
|
}
|