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