1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 odpic,
6}:
7
8buildPythonPackage rec {
9 pname = "cx-oracle";
10 version = "8.3.0";
11 format = "setuptools";
12
13 buildInputs = [ odpic ];
14
15 src = fetchPypi {
16 pname = "cx_Oracle";
17 inherit version;
18 sha256 = "3b2d215af4441463c97ea469b9cc307460739f89fdfa8ea222ea3518f1a424d9";
19 };
20
21 preConfigure = ''
22 export ODPIC_INC_DIR="${odpic}/include"
23 export ODPIC_LIB_DIR="${odpic}/lib"
24 '';
25
26 # Check need an Oracle database to run
27 doCheck = false;
28
29 meta = with lib; {
30 description = "Python interface to Oracle";
31 homepage = "https://oracle.github.io/python-cx_Oracle";
32 license = licenses.bsd3;
33 };
34}