1{ lib
2, buildPythonPackage
3, cryptography
4, cython_3
5, fetchPypi
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "oracledb";
11 version = "1.4.2";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-4o7ZBG8nNdwt1bvN82Z/KE44Tg7H7tPus3mPqKfUfjY=";
19 };
20
21 nativeBuildInputs = [
22 cython_3
23 ];
24
25 propagatedBuildInputs = [
26 cryptography
27 ];
28
29 # Checks need an Oracle database
30 doCheck = false;
31
32 pythonImportsCheck = [
33 "oracledb"
34 ];
35
36 meta = with lib; {
37 description = "Python driver for Oracle Database";
38 homepage = "https://oracle.github.io/python-oracledb";
39 changelog = "https://github.com/oracle/python-oracledb/blob/v${version}/doc/src/release_notes.rst";
40 license = with licenses; [ asl20 /* and or */ upl ];
41 maintainers = with maintainers; [ harvidsen ];
42 };
43}