2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-02-02 18:25:31 +00:00
|
|
|
, pythonOlder
|
2020-09-25 04:45:31 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2023-02-02 18:25:31 +00:00
|
|
|
, pythonRelaxDepsHook
|
2020-09-25 04:45:31 +00:00
|
|
|
, dill
|
2023-02-02 18:25:31 +00:00
|
|
|
, lightning-utilities
|
2020-09-25 04:45:31 +00:00
|
|
|
, numpy
|
2022-09-09 14:08:57 +00:00
|
|
|
, torch
|
2020-09-25 04:45:31 +00:00
|
|
|
, threadpoolctl
|
|
|
|
, tqdm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rising";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.3.0";
|
|
|
|
disabled = pythonOlder "TODO";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PhoenixDL";
|
|
|
|
repo = pname;
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-sBzVTst5Tp2oZZ+Xsg3M7uAMbucL6idlpYwHvib3EaY=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [ "lightning-utilities" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
lightning-utilities numpy torch threadpoolctl tqdm
|
|
|
|
];
|
|
|
|
nativeCheckInputs = [ dill pytestCheckHook ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"rising"
|
|
|
|
"rising.loading"
|
|
|
|
"rising.ops"
|
|
|
|
"rising.random"
|
|
|
|
"rising.transforms"
|
|
|
|
"rising.transforms.functional"
|
|
|
|
"rising.utils"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|