58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
certifi,
circuitbreaker,
cryptography,
fetchFromGitHub,
pyopenssl,
python-dateutil,
pytz,
setuptools,
}:
buildPythonPackage rec {
pname = "oci";
version = "2.142.0";
pyproject = true;
src = fetchFromGitHub {
owner = "oracle";
repo = "oci-python-sdk";
tag = "v${version}";
hash = "sha256-QZJjUgu2FSL1+fDuSD74mV1t7Y4PyMRJ1TsXrgOmvDU=";
};
pythonRelaxDeps = [
"cryptography"
"pyOpenSSL"
];
build-system = [ setuptools ];
dependencies = [
certifi
circuitbreaker
cryptography
pyopenssl
python-dateutil
pytz
];
# Tests fail: https://github.com/oracle/oci-python-sdk/issues/164
doCheck = false;
pythonImportsCheck = [ "oci" ];
meta = {
description = "Oracle Cloud Infrastructure Python SDK";
homepage = "https://github.com/oracle/oci-python-sdk";
changelog = "https://github.com/oracle/oci-python-sdk/blob/${src.tag}/CHANGELOG.rst";
license = with lib.licenses; [
asl20 # or
upl
];
maintainers = with lib.maintainers; [ ilian ];
};
}