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