2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
2023-05-24 13:37:59 +00:00
|
|
|
, aiooss2
|
2022-08-21 13:32:41 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fsspec
|
|
|
|
, oss2
|
|
|
|
, pythonOlder
|
2023-02-09 11:40:11 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-05-24 13:37:59 +00:00
|
|
|
, setuptools-scm
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ossfs";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2023.12.0";
|
2023-02-09 11:40:11 +00:00
|
|
|
format = "pyproject";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fsspec";
|
|
|
|
repo = pname;
|
2023-02-09 11:40:11 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-N1NkpI8inGJCf0xuc+FFmVX85CS7vqzoNddxZ9kqEk0=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
2023-05-24 13:37:59 +00:00
|
|
|
"aiooss2"
|
2023-02-09 11:40:11 +00:00
|
|
|
"fsspec"
|
|
|
|
"oss2"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-05-24 13:37:59 +00:00
|
|
|
aiooss2
|
2022-08-21 13:32:41 +00:00
|
|
|
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";
|
2023-02-09 11:40:11 +00:00
|
|
|
changelog = "https://github.com/fsspec/ossfs/releases/tag/${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|