13da32182d
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
41 lines
758 B
Nix
41 lines
758 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, fsspec
|
|
, oss2
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ossfs";
|
|
version = "2021.8.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fsspec";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-bORiE3sIDNESjEizdzsJYZTSMbcqpbjostXo+0NQDfA=";
|
|
};
|
|
|
|
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";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|