2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPyPy, unixODBC }:
|
2017-10-29 10:45:46 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyodbc";
|
2022-07-16 01:27:09 +00:00
|
|
|
version = "4.0.34";
|
2021-08-26 12:18:23 +00:00
|
|
|
disabled = isPyPy; # use pypypdbc instead
|
2017-10-29 10:45:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-07-16 01:27:09 +00:00
|
|
|
sha256 = "sha256-fqeGlTK5a41Smx8I6oV2X5TffkpY6Wiy+NRVNGoD5Fw=";
|
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
|
|
|
|
2021-08-26 12:18:23 +00:00
|
|
|
pythonImportsCheck = [ "pyodbc" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-29 10:45:46 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|