mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-31 01:02:20 +00:00
35 lines
649 B
Nix
35 lines
649 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
odpic,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cx-oracle";
|
|
version = "8.3.0";
|
|
format = "setuptools";
|
|
|
|
buildInputs = [ odpic ];
|
|
|
|
src = fetchPypi {
|
|
pname = "cx_Oracle";
|
|
inherit version;
|
|
hash = "sha256-Oy0hWvREFGPJfqRpucwwdGBzn4n9+o6iIuo1GPGkJNk=";
|
|
};
|
|
|
|
preConfigure = ''
|
|
export ODPIC_INC_DIR="${odpic}/include"
|
|
export ODPIC_LIB_DIR="${odpic}/lib"
|
|
'';
|
|
|
|
# Check need an Oracle database to run
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Python interface to Oracle";
|
|
homepage = "https://oracle.github.io/python-cx_Oracle";
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
}
|