2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fsspec
|
|
|
|
, oss2
|
|
|
|
, pythonOlder
|
2023-02-09 11:40:11 +00:00
|
|
|
, setuptools-scm
|
|
|
|
, pythonRelaxDepsHook
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ossfs";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "2023.1.0";
|
|
|
|
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}";
|
|
|
|
hash = "sha256-5mz1OC+6kDpiLNsMwOp+bdqY2eozMpAekS6h34QiOdo=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"fsspec"
|
|
|
|
"oss2"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|