Files
nixpkgs/pkgs/development/python-modules/torchbench/default.nix
Wolfgang Walther c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00

59 lines
944 B
Nix

{
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 = [ ];
};
}