blob: 74b0734d4428d05fc9f64fc34e51245f72122cf9 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
numpy,
opencv4,
sotabenchapi,
torch,
torchvision,
tqdm,
}:
let
version = "0.0.31";
pname = "torchbench";
in
buildPythonPackage {
inherit pname version;
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-EBZzcnRT50KREIOPrr/OZTJ4639ZUEejcelh3QSBcZ8=";
};
# requirements.txt is missing in the Pypi archive and this makes the setup.py script fails
postPatch = ''
touch requirements.txt
'';
build-system = [
setuptools
];
dependencies = [
numpy
opencv4
sotabenchapi
torch
torchvision
tqdm
];
pythonImportsCheck = [
"torchbench"
];
# No tests
doCheck = false;
meta = {
description = "Easily benchmark machine learning models in PyTorch";
homepage = "https://github.com/paperswithcode/torchbench";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
|