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
|
|
|
, 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
|
2023-03-04 12:14:45 +00:00
|
|
|
, pythonRelaxDepsHook
|
2021-04-15 00:37:46 +00:00
|
|
|
, pytz
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oci";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "2.107.0";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-15 00:37:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oracle";
|
|
|
|
repo = "oci-python-sdk";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-GeZCA5Bg3qSL3VRWh3Dvh9+4+3RgwuRVXR8LM/eKed4=";
|
2021-04-15 00:37:46 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"cryptography"
|
|
|
|
"pyOpenSSL"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
circuitbreaker
|
|
|
|
cryptography
|
|
|
|
pyopenssl
|
|
|
|
python-dateutil
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
2021-04-15 00:37:46 +00:00
|
|
|
# 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";
|
2023-03-04 12:14:45 +00:00
|
|
|
homepage = "https://github.com/oracle/oci-python-sdk";
|
|
|
|
changelog = "https://github.com/oracle/oci-python-sdk/blob/v${version}/CHANGELOG.rst";
|
2022-01-13 20:06:32 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ upl ];
|
2021-04-15 00:37:46 +00:00
|
|
|
maintainers = with maintainers; [ ilian ];
|
|
|
|
};
|
|
|
|
}
|