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