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.

57 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
2021-04-14 11:32:49 +00:00
, pytz
}:
buildPythonPackage rec {
pname = "oci";
version = "2.91.0";
2022-01-10 08:25:29 +00:00
format = "setuptools";
disabled = pythonOlder "3.6";
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-sKz++PtqLjgBTf8Y/pYoa/wyuK3OoXOdGyjsbXX0iao=";
2021-04-14 11:32:49 +00:00
};
2022-01-10 08:25:29 +00:00
propagatedBuildInputs = [
certifi
circuitbreaker
cryptography
pyopenssl
python-dateutil
pytz
];
2021-04-14 11:32:49 +00:00
postPatch = ''
substituteInPlace setup.py \
--replace "configparser==4.0.2 ; python_version < '3'" "" \
--replace "cryptography>=3.2.1,<=37.0.2" "cryptography" \
--replace "pyOpenSSL>=17.5.0,<=22.0.0" "pyOpenSSL"
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";
2022-01-10 08:25:29 +00:00
homepage = "https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/";
license = with licenses; [ asl20 /* or */ upl ];
2021-04-14 11:32:49 +00:00
maintainers = with maintainers; [ ilian ];
};
}