nixpkgs/pkgs/development/python-modules/oci/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.2 KiB
Nix
Raw Normal View History

2021-04-14 11:32:49 +00:00
{ lib
, buildPythonPackage
, certifi
2022-01-10 08:25:29 +00:00
, circuitbreaker
2021-04-14 11:32:49 +00:00
, cryptography
2022-01-10 08:25:29 +00:00
, fetchFromGitHub
2021-04-14 11:32:49 +00:00
, pyopenssl
, python-dateutil
2022-01-10 08:25:29 +00:00
, pythonOlder
, pythonRelaxDepsHook
2021-04-14 11:32:49 +00:00
, pytz
}:
buildPythonPackage rec {
pname = "oci";
version = "2.93.0";
2022-01-10 08:25:29 +00:00
format = "setuptools";
disabled = pythonOlder "3.7";
2021-04-14 11:32:49 +00:00
src = fetchFromGitHub {
owner = "oracle";
repo = "oci-python-sdk";
2022-07-16 10:59:20 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-yH9SCrTASP+O9VLVs6tliteCOWi+Pc7nDOgiboHQE4s=";
2021-04-14 11:32:49 +00:00
};
pythonRelaxDeps = [
"cryptography"
"pyOpenSSL"
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
2022-01-10 08:25:29 +00:00
propagatedBuildInputs = [
certifi
circuitbreaker
cryptography
pyopenssl
python-dateutil
pytz
];
2021-04-14 11:32:49 +00:00
# Tests fail: https://github.com/oracle/oci-python-sdk/issues/164
doCheck = false;
2022-01-10 08:25:29 +00:00
pythonImportsCheck = [
"oci"
];
2021-04-14 11:32:49 +00:00
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";
2022-01-10 08:25:29 +00:00
license = with licenses; [ asl20 /* or */ upl ];
2021-04-14 11:32:49 +00:00
maintainers = with maintainers; [ ilian ];
};
}