2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
# build inputs
|
|
|
|
tqdm,
|
|
|
|
portalocker,
|
|
|
|
boto3,
|
|
|
|
# check inputs
|
|
|
|
pytestCheckHook,
|
|
|
|
torch,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
pname = "iopath";
|
|
|
|
version = "0.1.9";
|
|
|
|
in
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit pname version;
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebookresearch";
|
|
|
|
repo = "iopath";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-Qubf/mWKMgYz9IVoptMZrwy4lQKsNGgdqpJB1j/u5s8=";
|
|
|
|
};
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "iopath" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2023-07-15 17:15:38 +00:00
|
|
|
aws = [ boto3 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python library that provides common I/O interface across different storage backends";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/facebookresearch/iopath";
|
|
|
|
changelog = "https://github.com/facebookresearch/iopath/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|