Files
nixpkgs/pkgs/development/python-modules/cx-oracle/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

35 lines
664 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;
sha256 = "3b2d215af4441463c97ea469b9cc307460739f89fdfa8ea222ea3518f1a424d9";
};
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;
};
}