depot/third_party/nixpkgs/pkgs/development/python-modules/oci/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

62 lines
1.2 KiB
Nix

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