1{
2 lib,
3 aiooss2,
4 buildPythonPackage,
5 fetchFromGitHub,
6 fsspec,
7 oss2,
8 pythonOlder,
9 setuptools-scm,
10}:
11
12buildPythonPackage rec {
13 pname = "ossfs";
14 version = "2025.5.0";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "fsspec";
21 repo = "ossfs";
22 tag = version;
23 hash = "sha256-2i7zxLCi4wNCwzWNUbC6lvvdRkK+ksUWds+H6QG6bW4=";
24 };
25
26 pythonRelaxDeps = [
27 "aiooss2"
28 "fsspec"
29 "oss2"
30 ];
31
32 nativeBuildInputs = [
33 setuptools-scm
34 ];
35
36 propagatedBuildInputs = [
37 aiooss2
38 fsspec
39 oss2
40 ];
41
42 # Most tests require network access
43 doCheck = false;
44
45 pythonImportsCheck = [ "ossfs" ];
46
47 meta = with lib; {
48 description = "Filesystem for Alibaba Cloud (Aliyun) Object Storage System (OSS)";
49 homepage = "https://github.com/fsspec/ossfs";
50 changelog = "https://github.com/fsspec/ossfs/releases/tag/${src.tag}";
51 license = licenses.asl20;
52 maintainers = with maintainers; [ fab ];
53 };
54}