Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 31 lines 799 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, oracle-instantclient }: 2 3buildPythonPackage rec { 4 pname = "cx_Oracle"; 5 version = "6.3.1"; 6 7 buildInputs = [ 8 oracle-instantclient 9 ]; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "0200j6jh80rpgzxmvgcxmkshaj4zadq32g2i97nlwiq3f7q374l7"; 14 }; 15 16 patches = [ ./0001-odpi-src-dpiOci.c-nixify-libclntsh.so-dlopen.patch ]; 17 18 postPatch = '' 19 substituteInPlace odpi/src/dpiOci.c --replace @libclntsh@ "${oracle-instantclient}/lib/libclntsh.so"; 20 ''; 21 22 # Check need an Oracle database to run 23 doCheck = false; 24 25 meta = with stdenv.lib; { 26 description = "Python interface to Oracle"; 27 homepage = "https://oracle.github.io/python-cx_Oracle"; 28 license = licenses.bsdOriginal; 29 maintainers = with maintainers; [ y0no ]; 30 }; 31}