2024-05-03 15:23:35 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cryptography,
|
|
|
|
cython,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
wheel,
|
2023-02-20 14:19:50 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oracledb";
|
2024-05-28 06:20:46 +00:00
|
|
|
version = "2.2.1";
|
2023-12-21 18:39:51 +01:00
|
|
|
pyproject = true;
|
2023-02-20 14:19:50 +01:00
|
|
|
|
2023-12-21 18:39:51 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-02-20 14:19:50 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-28 06:20:46 +00:00
|
|
|
hash = "sha256-hGTG8ClfMxja9sLHLIPC3Lw34T+P1E4+Of+GZfRC1rY=";
|
2023-02-20 14:19:50 +01:00
|
|
|
};
|
|
|
|
|
2024-03-24 21:18:14 +01:00
|
|
|
build-system = [
|
2024-03-24 03:25:37 +01:00
|
|
|
cython
|
2023-12-21 18:39:51 +01:00
|
|
|
setuptools
|
|
|
|
wheel
|
2023-02-20 14:19:50 +01:00
|
|
|
];
|
|
|
|
|
2024-05-03 15:23:35 +02:00
|
|
|
dependencies = [ cryptography ];
|
2023-02-20 14:19:50 +01:00
|
|
|
|
2023-09-15 20:15:15 +02:00
|
|
|
# Checks need an Oracle database
|
|
|
|
doCheck = false;
|
2023-02-20 14:19:50 +01:00
|
|
|
|
2024-05-03 15:23:35 +02:00
|
|
|
pythonImportsCheck = [ "oracledb" ];
|
2023-02-20 14:19:50 +01:00
|
|
|
|
|
|
|
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";
|
2024-05-03 15:23:35 +02:00
|
|
|
license = with licenses; [
|
|
|
|
asl20 # and or
|
|
|
|
upl
|
|
|
|
];
|
2023-02-20 14:19:50 +01:00
|
|
|
maintainers = with maintainers; [ harvidsen ];
|
|
|
|
};
|
|
|
|
}
|