Martin Weinelt ae4a1a485a
treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00

36 lines
716 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 = with lib; {
description = "Python interface to Oracle";
homepage = "https://oracle.github.io/python-cx_Oracle";
license = licenses.bsd3;
maintainers = with maintainers; [ y0no ];
};
}