blob: 0e876aecbb05d85bad1c19a95a8d71ec11de0444 (
plain) (
blame)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
versioneer,
# dependencies
lightning-utilities,
numpy,
torch,
threadpoolctl,
tqdm,
# tests
dill,
pytestCheckHook,
stdenv,
}:
buildPythonPackage rec {
pname = "rising";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "PhoenixDL";
repo = "rising";
rev = "refs/tags/v${version}";
hash = "sha256-sBzVTst5Tp2oZZ+Xsg3M7uAMbucL6idlpYwHvib3EaY=";
};
pythonRelaxDeps = [ "lightning-utilities" ];
# Remove vendorized versioneer (incompatible with python 3.12)
postPatch = ''
rm versioneer.py
'';
build-system = [ versioneer ];
dependencies = [
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 ];
};
}
|