depot/third_party/nixpkgs/pkgs/development/python-modules/oci/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

60 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, certifi
, circuitbreaker
, cryptography
, fetchFromGitHub
, pyopenssl
, python-dateutil
, pythonOlder
, pythonRelaxDepsHook
, pytz
}:
buildPythonPackage rec {
pname = "oci";
version = "2.106.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "oracle";
repo = "oci-python-sdk";
rev = "refs/tags/v${version}";
hash = "sha256-46+/uxCwAO9E1YBE337lsD3h2jkcBCYM7o3Vzh42tmI=";
};
pythonRelaxDeps = [
"cryptography"
"pyOpenSSL"
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
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 ];
};
}