2021-04-14 13:32:49 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
|
|
|
, configparser
|
|
|
|
, cryptography
|
|
|
|
, pyopenssl
|
2021-07-03 13:37:24 +02:00
|
|
|
, python-dateutil
|
2021-04-14 13:32:49 +02:00
|
|
|
, pytz
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oci";
|
|
|
|
version = "2.36.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oracle";
|
|
|
|
repo = "oci-python-sdk";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-scG/ZhWeiCgXp7iD6arWIN8KZecSjKLsCW4oXeJvx6M=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "configparser==4.0.2" "configparser" \
|
|
|
|
--replace "cryptography==3.2.1" "cryptography" \
|
|
|
|
--replace "pyOpenSSL>=17.5.0,<=19.1.0" "pyOpenSSL"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-07-03 13:37:24 +02:00
|
|
|
certifi configparser cryptography pyopenssl python-dateutil pytz
|
2021-04-14 13:32:49 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests fail: https://github.com/oracle/oci-python-sdk/issues/164
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "oci" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Oracle Cloud Infrastructure Python SDK";
|
|
|
|
homepage = "https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/index.html";
|
|
|
|
maintainers = with maintainers; [ ilian ];
|
|
|
|
license = with licenses; [ asl20 upl ];
|
|
|
|
};
|
|
|
|
}
|