f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
dill,
|
|
lightning-utilities,
|
|
numpy,
|
|
torch,
|
|
threadpoolctl,
|
|
tqdm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rising";
|
|
version = "0.3.0";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PhoenixDL";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-sBzVTst5Tp2oZZ+Xsg3M7uAMbucL6idlpYwHvib3EaY=";
|
|
};
|
|
|
|
|
|
pythonRelaxDeps = [ "lightning-utilities" ];
|
|
|
|
propagatedBuildInputs = [
|
|
lightning-utilities
|
|
numpy
|
|
torch
|
|
threadpoolctl
|
|
tqdm
|
|
];
|
|
nativeCheckInputs = [
|
|
dill
|
|
pytestCheckHook
|
|
];
|
|
disabledTests = lib.optionals (stdenv.isLinux && stdenv.isAarch64) [
|
|
# RuntimeError: DataLoader worker (pid(s) <...>) exited unexpectedly:
|
|
"test_progressive_resize_integration"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"rising"
|
|
"rising.loading"
|
|
"rising.ops"
|
|
"rising.random"
|
|
"rising.transforms"
|
|
"rising.transforms.functional"
|
|
"rising.utils"
|
|
];
|
|
|
|
meta = {
|
|
description = "High-performance data loading and augmentation library in PyTorch";
|
|
homepage = "https://rising.rtfd.io";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
};
|
|
}
|