1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, flit-core
5, fsspec
6, oci
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "ocifs";
12 version = "1.3.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "oracle";
19 repo = "ocifs";
20 rev = "refs/tags/${version}";
21 hash = "sha256-ugNITi2tSf3lhbASgr6ErmFDYinQjnhmtRjV3YL7F9U=";
22 };
23
24 nativeBuildInputs = [
25 flit-core
26 ];
27
28 propagatedBuildInputs = [
29 fsspec
30 oci
31 ];
32
33 # Module has no tests
34 doCheck = false;
35
36 pythonImportsCheck = [
37 "ocifs"
38 ];
39
40 meta = with lib; {
41 description = "Oracle Cloud Infrastructure Object Storage fsspec implementation";
42 homepage = "https://ocifs.readthedocs.io";
43 changelog = "https://github.com/oracle/ocifs/releases/tag/${version}";
44 license = with licenses; [ upl ];
45 maintainers = with maintainers; [ fab ];
46 };
47}