1{
2 lib,
3 buildPythonPackage,
4 certifi,
5 circuitbreaker,
6 cryptography,
7 fetchFromGitHub,
8 pyopenssl,
9 python-dateutil,
10 pythonOlder,
11 pytz,
12 setuptools,
13}:
14
15buildPythonPackage rec {
16 pname = "oci";
17 version = "2.128.2";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "oracle";
24 repo = "oci-python-sdk";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-AT4jE4apkZ0uK1Z03nVnMN9CS5uiMwPNsarq7pY+Pnw=";
27 };
28
29 pythonRelaxDeps = [
30 "cryptography"
31 "pyOpenSSL"
32 ];
33
34 nativeBuildInputs = [
35 setuptools
36 ];
37
38 propagatedBuildInputs = [
39 certifi
40 circuitbreaker
41 cryptography
42 pyopenssl
43 python-dateutil
44 pytz
45 ];
46
47 # Tests fail: https://github.com/oracle/oci-python-sdk/issues/164
48 doCheck = false;
49
50 pythonImportsCheck = [ "oci" ];
51
52 meta = with lib; {
53 description = "Oracle Cloud Infrastructure Python SDK";
54 homepage = "https://github.com/oracle/oci-python-sdk";
55 changelog = "https://github.com/oracle/oci-python-sdk/blob/v${version}/CHANGELOG.rst";
56 license = with licenses; [
57 asl20 # or
58 upl
59 ];
60 maintainers = with maintainers; [ ilian ];
61 };
62}