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