depot/third_party/nixpkgs/pkgs/development/python-modules/oci/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

64 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
certifi,
circuitbreaker,
cryptography,
fetchFromGitHub,
pyopenssl,
python-dateutil,
pythonOlder,
pythonRelaxDepsHook,
pytz,
setuptools,
}:
buildPythonPackage rec {
pname = "oci";
version = "2.128.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "oracle";
repo = "oci-python-sdk";
rev = "refs/tags/v${version}";
hash = "sha256-Df8DwzB/pOyixBS5dx9MeBa8IsZw/8q1Dk8itmsHGSM=";
};
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 ];
};
}