nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 cryptography,
5 cython,
6 fetchFromGitHub,
7 setuptools,
8 typing-extensions,
9}:
10
11buildPythonPackage rec {
12 pname = "oracledb";
13 version = "3.4.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "oracle";
18 repo = "python-oracledb";
19 tag = "v${version}";
20 fetchSubmodules = true;
21 hash = "sha256-Pwbb+/vzNnliBpcDmOpkkNMVI/cPbJY+yMIKKR6m01w=";
22 };
23
24 build-system = [
25 cython
26 setuptools
27 ];
28
29 dependencies = [
30 cryptography
31 typing-extensions
32 ];
33
34 # Checks need an Oracle database
35 doCheck = false;
36
37 pythonImportsCheck = [ "oracledb" ];
38
39 meta = {
40 description = "Python driver for Oracle Database";
41 homepage = "https://oracle.github.io/python-oracledb";
42 changelog = "https://github.com/oracle/python-oracledb/blob/${src.tag}/doc/src/release_notes.rst";
43 license = with lib.licenses; [
44 asl20 # and or
45 upl
46 ];
47 maintainers = with lib.maintainers; [ harvidsen ];
48 };
49}