forked from mirrors/nixpkgs
python3Packages.oci: init at 2.36.0
This commit is contained in:
parent
ccabc238a8
commit
59c461352e
45
pkgs/development/python-modules/oci/default.nix
Normal file
45
pkgs/development/python-modules/oci/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, certifi
|
||||
, configparser
|
||||
, cryptography
|
||||
, pyopenssl
|
||||
, dateutil
|
||||
, pytz
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "oci";
|
||||
version = "2.36.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "oracle";
|
||||
repo = "oci-python-sdk";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-scG/ZhWeiCgXp7iD6arWIN8KZecSjKLsCW4oXeJvx6M=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "configparser==4.0.2" "configparser" \
|
||||
--replace "cryptography==3.2.1" "cryptography" \
|
||||
--replace "pyOpenSSL>=17.5.0,<=19.1.0" "pyOpenSSL"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
certifi configparser cryptography pyopenssl 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://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/index.html";
|
||||
maintainers = with maintainers; [ ilian ];
|
||||
license = with licenses; [ asl20 upl ];
|
||||
};
|
||||
}
|
|
@ -4813,6 +4813,8 @@ in {
|
|||
graphvizPkgs = pkgs.graphviz;
|
||||
};
|
||||
|
||||
oci = callPackage ../development/python-modules/oci { };
|
||||
|
||||
od = callPackage ../development/python-modules/od { };
|
||||
|
||||
odfpy = callPackage ../development/python-modules/odfpy { };
|
||||
|
|
Loading…
Reference in a new issue