e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, certifi
|
|
, circuitbreaker
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, pyopenssl
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, pytz
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oci";
|
|
version = "2.118.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oracle";
|
|
repo = "oci-python-sdk";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-bmV2IFMh/lp7+7MMqlg9zm8VkdZE48zqf8N3+/sSkTc=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"cryptography"
|
|
"pyOpenSSL"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pythonRelaxDepsHook
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
certifi
|
|
circuitbreaker
|
|
cryptography
|
|
pyopenssl
|
|
python-dateutil
|
|
pytz
|
|
];
|
|
|
|
# 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://github.com/oracle/oci-python-sdk";
|
|
changelog = "https://github.com/oracle/oci-python-sdk/blob/v${version}/CHANGELOG.rst";
|
|
license = with licenses; [ asl20 /* or */ upl ];
|
|
maintainers = with maintainers; [ ilian ];
|
|
};
|
|
}
|