2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
2020-09-25 04:45:31 +00:00
|
|
|
, dill
|
|
|
|
, numpy
|
2022-09-09 14:08:57 +00:00
|
|
|
, torch
|
2020-09-25 04:45:31 +00:00
|
|
|
, threadpoolctl
|
|
|
|
, tqdm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rising";
|
2021-08-08 23:34:03 +00:00
|
|
|
version = "0.2.1";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PhoenixDL";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-08 23:34:03 +00:00
|
|
|
sha256 = "15wYWToXRae1cMpHWbJwzAp0THx6ED9ixQgL+n1v9PI=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
propagatedBuildInputs = [ numpy torch threadpoolctl tqdm ];
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ dill pytest-cov pytestCheckHook ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
disabledTests = [ "test_affine" ]; # deprecated division operator '/'
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|