From d0208eadad300980fff67abc405e7508219df411 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 13 Aug 2022 21:40:53 +0200 Subject: [PATCH 1/3] python310Packages.oci: 2.75.0 -> 2.78.0 --- pkgs/development/python-modules/oci/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/oci/default.nix b/pkgs/development/python-modules/oci/default.nix index 205cd78757e4..e136ed354e3f 100644 --- a/pkgs/development/python-modules/oci/default.nix +++ b/pkgs/development/python-modules/oci/default.nix @@ -2,7 +2,6 @@ , buildPythonPackage , certifi , circuitbreaker -, configparser , cryptography , fetchFromGitHub , pyopenssl @@ -13,7 +12,7 @@ buildPythonPackage rec { pname = "oci"; - version = "2.75.0"; + version = "2.78.0"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -22,13 +21,12 @@ buildPythonPackage rec { owner = "oracle"; repo = "oci-python-sdk"; rev = "refs/tags/v${version}"; - hash = "sha256-dr95RHM8h2JIqkaey7E9DzbTLfLlCCUL1ZmTIH4mBRw="; + hash = "sha256-24V9vfuNMxvC5iqluW4xz7WICXbQA89xmiAH6tIDRw0="; }; propagatedBuildInputs = [ certifi circuitbreaker - configparser cryptography pyopenssl python-dateutil @@ -37,9 +35,9 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.py \ - --replace "configparser==4.0.2 ; python_version < '3'" "configparser" \ - --replace "cryptography>=3.2.1,<=3.4.7" "cryptography" \ - --replace "pyOpenSSL>=17.5.0,<=19.1.0" "pyOpenSSL" + --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" ''; # Tests fail: https://github.com/oracle/oci-python-sdk/issues/164 From 4a57232668a92253a113a4d86d1c2a9305327c88 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 13 Aug 2022 21:43:39 +0200 Subject: [PATCH 2/3] python310Packages.ocifs: init at 1.1.2 --- .../python-modules/ocifs/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/ocifs/default.nix diff --git a/pkgs/development/python-modules/ocifs/default.nix b/pkgs/development/python-modules/ocifs/default.nix new file mode 100644 index 000000000000..a28ad0bbaa01 --- /dev/null +++ b/pkgs/development/python-modules/ocifs/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 51cbc01b565a..d8358eae74a6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6166,6 +6166,8 @@ in { oci = callPackage ../development/python-modules/oci { }; + ocifs = callPackage ../development/python-modules/ocifs { }; + ocrmypdf = callPackage ../development/python-modules/ocrmypdf { }; od = callPackage ../development/python-modules/od { }; From 2affd4e8519e73bcc690cecaa65abb8739f82715 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 13 Aug 2022 22:08:43 +0200 Subject: [PATCH 3/3] oci-cli: 3.7.2 -> 3.14.0 --- pkgs/tools/admin/oci-cli/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/admin/oci-cli/default.nix b/pkgs/tools/admin/oci-cli/default.nix index 2272a7efdfbe..16d7a4ce9cb1 100644 --- a/pkgs/tools/admin/oci-cli/default.nix +++ b/pkgs/tools/admin/oci-cli/default.nix @@ -22,6 +22,7 @@ let inherit version; sha256 = "b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9"; }; + doCheck = false; }); }; @@ -31,24 +32,24 @@ with py.pkgs; buildPythonApplication rec { pname = "oci-cli"; - version = "3.7.2"; + version = "3.14.0"; format = "setuptools"; src = fetchFromGitHub { owner = "oracle"; - repo = "oci-cli"; + repo = pname; rev = "v${version}"; - hash = "sha256-20Tnn0s+sfLEsAG9S6f61OVGpRf53wFPtt4a2/TJbCg="; + hash = "sha256-yooEZuSIw2EMJVyT/Z/x4hJi8a1F674CtsMMGkMAYLg="; }; propagatedBuildInputs = [ arrow certifi click - configparser cryptography jmespath oci + prompt-toolkit pyopenssl python-dateutil pytz @@ -60,9 +61,10 @@ buildPythonApplication rec { postPatch = '' substituteInPlace setup.py \ - --replace "cryptography>=3.2.1,<=3.4.7" "cryptography" \ - --replace "pyOpenSSL==19.1.0" "pyOpenSSL" \ + --replace "cryptography>=3.2.1,<=37.0.2" "cryptography" \ + --replace "pyOpenSSL>=17.5.0,<=22.0.0" "pyOpenSSL" \ --replace "PyYAML>=5.4,<6" "PyYAML" \ + --replace "prompt-toolkit==3.0.29" "prompt-toolkit" \ --replace "terminaltables==3.1.0" "terminaltables" '';