1{ stdenv, buildPythonPackage, fetchPypi, odpic }: 2 3buildPythonPackage rec { 4 pname = "cx_Oracle"; 5 version = "6.4.1"; 6 7 buildInputs = [ odpic ]; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "3519bf3263c9892aaadc844735aca02d3773ed9b92f97e069cd1726882a7d1b6"; 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 stdenv.lib; { 23 description = "Python interface to Oracle"; 24 homepage = "https://oracle.github.io/python-cx_Oracle"; 25 license = licenses.bsdOriginal; 26 maintainers = with maintainers; [ y0no ]; 27 }; 28}