2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-10-09 19:29:22 +00:00
|
|
|
, cryptography
|
|
|
|
, cython_3
|
2023-03-04 12:14:45 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2024-01-02 11:29:13 +00:00
|
|
|
, setuptools
|
|
|
|
, wheel
|
2023-03-04 12:14:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oracledb";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.0.0";
|
|
|
|
pyproject = true;
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-+0SB560anoEhSCiiGaRbZTMB2AxaHMR+A4VxBbYa4sk=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
cython_3
|
2024-01-02 11:29:13 +00:00
|
|
|
setuptools
|
|
|
|
wheel
|
2023-03-04 12:14:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# Checks need an Oracle database
|
|
|
|
doCheck = false;
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"oracledb"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python driver for Oracle Database";
|
|
|
|
homepage = "https://oracle.github.io/python-oracledb";
|
|
|
|
changelog = "https://github.com/oracle/python-oracledb/blob/v${version}/doc/src/release_notes.rst";
|
|
|
|
license = with licenses; [ asl20 /* and or */ upl ];
|
|
|
|
maintainers = with maintainers; [ harvidsen ];
|
|
|
|
};
|
|
|
|
}
|