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:
commit
a61c5d394c
4 changed files with 56 additions and 13 deletions
|
@ -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
|
||||
|
|
41
pkgs/development/python-modules/ocifs/default.nix
Normal file
41
pkgs/development/python-modules/ocifs/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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"
|
||||
'';
|
||||
|
||||
|
|
|
@ -6184,6 +6184,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 { };
|
||||
|
|
Loading…
Reference in a new issue