Merge pull request #186486 from fabaff/ocifs

python310Packages.ocifs: init at 1.1.2, oci-cli: 3.7.2 -> 3.14.0
This commit is contained in:
Fabian Affolter 2022-08-14 21:30:37 +02:00 committed by GitHub
commit a61c5d394c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 56 additions and 13 deletions

View file

@ -2,7 +2,6 @@
, buildPythonPackage , buildPythonPackage
, certifi , certifi
, circuitbreaker , circuitbreaker
, configparser
, cryptography , cryptography
, fetchFromGitHub , fetchFromGitHub
, pyopenssl , pyopenssl
@ -13,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "oci"; pname = "oci";
version = "2.75.0"; version = "2.78.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -22,13 +21,12 @@ buildPythonPackage rec {
owner = "oracle"; owner = "oracle";
repo = "oci-python-sdk"; repo = "oci-python-sdk";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-dr95RHM8h2JIqkaey7E9DzbTLfLlCCUL1ZmTIH4mBRw="; hash = "sha256-24V9vfuNMxvC5iqluW4xz7WICXbQA89xmiAH6tIDRw0=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
certifi certifi
circuitbreaker circuitbreaker
configparser
cryptography cryptography
pyopenssl pyopenssl
python-dateutil python-dateutil
@ -37,9 +35,9 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "configparser==4.0.2 ; python_version < '3'" "configparser" \ --replace "configparser==4.0.2 ; python_version < '3'" "" \
--replace "cryptography>=3.2.1,<=3.4.7" "cryptography" \ --replace "cryptography>=3.2.1,<=37.0.2" "cryptography" \
--replace "pyOpenSSL>=17.5.0,<=19.1.0" "pyOpenSSL" --replace "pyOpenSSL>=17.5.0,<=22.0.0" "pyOpenSSL"
''; '';
# Tests fail: https://github.com/oracle/oci-python-sdk/issues/164 # Tests fail: https://github.com/oracle/oci-python-sdk/issues/164

View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fsspec
, oci
, pythonOlder
}:
buildPythonPackage rec {
pname = "ocifs";
version = "1.1.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "oracle";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-4Yf6f89btzLij0OxGYRrnRpYCs8edDcwJPFbPZUfx9w=";
};
propagatedBuildInputs = [
fsspec
oci
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"ocifs"
];
meta = with lib; {
description = "Oracle Cloud Infrastructure Object Storage fsspec implementation";
homepage = "https://ocifs.readthedocs.io";
license = with licenses; [ upl ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -22,6 +22,7 @@ let
inherit version; inherit version;
sha256 = "b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9"; sha256 = "b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9";
}; };
doCheck = false;
}); });
}; };
@ -31,24 +32,24 @@ with py.pkgs;
buildPythonApplication rec { buildPythonApplication rec {
pname = "oci-cli"; pname = "oci-cli";
version = "3.7.2"; version = "3.14.0";
format = "setuptools"; format = "setuptools";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "oracle"; owner = "oracle";
repo = "oci-cli"; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-20Tnn0s+sfLEsAG9S6f61OVGpRf53wFPtt4a2/TJbCg="; hash = "sha256-yooEZuSIw2EMJVyT/Z/x4hJi8a1F674CtsMMGkMAYLg=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
arrow arrow
certifi certifi
click click
configparser
cryptography cryptography
jmespath jmespath
oci oci
prompt-toolkit
pyopenssl pyopenssl
python-dateutil python-dateutil
pytz pytz
@ -60,9 +61,10 @@ buildPythonApplication rec {
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "cryptography>=3.2.1,<=3.4.7" "cryptography" \ --replace "cryptography>=3.2.1,<=37.0.2" "cryptography" \
--replace "pyOpenSSL==19.1.0" "pyOpenSSL" \ --replace "pyOpenSSL>=17.5.0,<=22.0.0" "pyOpenSSL" \
--replace "PyYAML>=5.4,<6" "PyYAML" \ --replace "PyYAML>=5.4,<6" "PyYAML" \
--replace "prompt-toolkit==3.0.29" "prompt-toolkit" \
--replace "terminaltables==3.1.0" "terminaltables" --replace "terminaltables==3.1.0" "terminaltables"
''; '';

View file

@ -6184,6 +6184,8 @@ in {
oci = callPackage ../development/python-modules/oci { }; oci = callPackage ../development/python-modules/oci { };
ocifs = callPackage ../development/python-modules/ocifs { };
ocrmypdf = callPackage ../development/python-modules/ocrmypdf { }; ocrmypdf = callPackage ../development/python-modules/ocrmypdf { };
od = callPackage ../development/python-modules/od { }; od = callPackage ../development/python-modules/od { };