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
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2021-04-15 00:37:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oci";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.118.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}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-bmV2IFMh/lp7+7MMqlg9zm8VkdZE48zqf8N3+/sSkTc=";
|
2021-04-15 00:37:46 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"cryptography"
|
|
|
|
"pyOpenSSL"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
2024-01-13 08:15:51 +00:00
|
|
|
setuptools
|
2023-03-04 12:14:45 +00:00
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|