2021-04-15 00:37:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
2022-01-13 20:06:32 +00:00
|
|
|
, circuitbreaker
|
2021-04-15 00:37:46 +00:00
|
|
|
, configparser
|
|
|
|
, cryptography
|
2022-01-13 20:06:32 +00:00
|
|
|
, fetchFromGitHub
|
2021-04-15 00:37:46 +00:00
|
|
|
, pyopenssl
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-dateutil
|
2022-01-13 20:06:32 +00:00
|
|
|
, pythonOlder
|
2021-04-15 00:37:46 +00:00
|
|
|
, pytz
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oci";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "2.53.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-04-15 00:37:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oracle";
|
|
|
|
repo = "oci-python-sdk";
|
|
|
|
rev = "v${version}";
|
2022-01-13 20:06:32 +00:00
|
|
|
hash = "sha256-TnLKT/F36jHEfT9K6DFM2GmPRccXz1GJWIF+EEQYRls=";
|
2021-04-15 00:37:46 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
circuitbreaker
|
|
|
|
configparser
|
|
|
|
cryptography
|
|
|
|
pyopenssl
|
|
|
|
python-dateutil
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
2021-04-15 00:37:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2022-01-13 20:06:32 +00:00
|
|
|
--replace "configparser==4.0.2 ; python_version < '3'" "configparser" \
|
|
|
|
--replace "cryptography>=3.2.1,<=3.4.7" "cryptography" \
|
2021-04-15 00:37:46 +00:00
|
|
|
--replace "pyOpenSSL>=17.5.0,<=19.1.0" "pyOpenSSL"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests fail: https://github.com/oracle/oci-python-sdk/issues/164
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"oci"
|
|
|
|
];
|
2021-04-15 00:37:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Oracle Cloud Infrastructure Python SDK";
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/";
|
|
|
|
license = with licenses; [ asl20 /* or */ upl ];
|
2021-04-15 00:37:46 +00:00
|
|
|
maintainers = with maintainers; [ ilian ];
|
|
|
|
};
|
|
|
|
}
|