1{ lib, buildPythonPackage, fetchPypi, odpic }: 2 3buildPythonPackage rec { 4 pname = "cx_Oracle"; 5 version = "8.3.0"; 6 7 buildInputs = [ odpic ]; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "3b2d215af4441463c97ea469b9cc307460739f89fdfa8ea222ea3518f1a424d9"; 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}