2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
odpic,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-01-13 08:15:51 +00:00
|
|
|
pname = "cx-oracle";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "8.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ odpic ];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-01-13 08:15:51 +00:00
|
|
|
pname = "cx_Oracle";
|
|
|
|
inherit version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "3b2d215af4441463c97ea469b9cc307460739f89fdfa8ea222ea3518f1a424d9";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export ODPIC_INC_DIR="${odpic}/include"
|
|
|
|
export ODPIC_LIB_DIR="${odpic}/lib"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Check need an Oracle database to run
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python interface to Oracle";
|
|
|
|
homepage = "https://oracle.github.io/python-cx_Oracle";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ y0no ];
|
|
|
|
};
|
|
|
|
}
|