python3Packages.opendal: init at 0.46.0

This commit is contained in:
Gaetan Lepage
2025-11-05 22:12:27 +00:00
parent 25961a9e31
commit 5f020222a0
3 changed files with 6383 additions and 0 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,57 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
rustPlatform,
# tests
pytest-asyncio,
pytestCheckHook,
python-dotenv,
}:
buildPythonPackage rec {
pname = "opendal";
version = "0.46.0";
pyproject = true;
src = fetchFromGitHub {
owner = "apache";
repo = "opendal";
tag = "v${version}";
hash = "sha256-OQGpz6o4R0Yp+1vAgFtik/l7wvHwJNcB1BhZLk+BFPg=";
};
sourceRoot = "${src.name}/bindings/python";
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
};
env = {
PYO3_USE_ABI3_FORWARD_COMPATIBILITY = 1;
};
build-system = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
pythonImportsCheck = [ "opendal" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
python-dotenv
];
meta = {
description = "native Python binding for Apache OpenDAL";
homepage = "https://github.com/apache/opendal/blob/main/bindings/python";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
+2
View File
@@ -11070,6 +11070,8 @@ self: super: with self; {
}
);
opendal = callPackage ../development/python-modules/opendal { };
openerz-api = callPackage ../development/python-modules/openerz-api { };
openevsewifi = callPackage ../development/python-modules/openevsewifi { };