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