blob: 15eecb33755c9e5c2bf7ddbd89cfd37632028a95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build inputs
tqdm,
portalocker,
boto3,
# check inputs
pytestCheckHook,
torch,
}:
let
pname = "iopath";
version = "0.1.10";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
src = fetchFromGitHub {
owner = "facebookresearch";
repo = "iopath";
tag = "v${version}";
hash = "sha256-vJV0c+dCFO0wOHahKJ8DbwT2Thx3YjkNLVSpQv9H69g=";
};
propagatedBuildInputs = [
tqdm
portalocker
];
nativeCheckInputs = [
pytestCheckHook
torch
];
disabledTests = [
# requires network access
"test_download"
"test_bad_args"
];
disabledTestPaths = [
# flakey
"tests/async_torch_test.py"
"tests/async_writes_test.py"
];
pythonImportsCheck = [ "iopath" ];
optional-dependencies = {
aws = [ boto3 ];
};
meta = {
description = "Python library that provides common I/O interface across different storage backends";
homepage = "https://github.com/facebookresearch/iopath";
changelog = "https://github.com/facebookresearch/iopath/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ happysalada ];
};
}
|