depot/third_party/nixpkgs/pkgs/development/python-modules/ossfs/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

56 lines
1 KiB
Nix

{
lib,
aiooss2,
buildPythonPackage,
fetchFromGitHub,
fsspec,
oss2,
pythonOlder,
pythonRelaxDepsHook,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "ossfs";
version = "2023.12.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "fsspec";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-N1NkpI8inGJCf0xuc+FFmVX85CS7vqzoNddxZ9kqEk0=";
};
pythonRelaxDeps = [
"aiooss2"
"fsspec"
"oss2"
];
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools-scm
];
propagatedBuildInputs = [
aiooss2
fsspec
oss2
];
# Most tests require network access
doCheck = false;
pythonImportsCheck = [ "ossfs" ];
meta = with lib; {
description = "Filesystem for Alibaba Cloud (Aliyun) Object Storage System (OSS)";
homepage = "https://github.com/fsspec/ossfs";
changelog = "https://github.com/fsspec/ossfs/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}