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