depot/third_party/nixpkgs/pkgs/development/python-modules/sotabenchapi/default.nix
Default email 24fdeddc0a Project import generated by Copybara.
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
2024-10-23 09:41:50 +03:00

52 lines
918 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
click,
requests,
tabulate,
}:
let
version = "0.0.16";
pname = "sotabenchapi";
in
buildPythonPackage {
inherit pname version;
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-thbVH4aLmEgi8K17PkmbUg4nHqGj+dEiXPDILjvQMzk=";
};
# requirements.txt is missing in the Pypi archive and this makes the setup.py script fails
postPatch = ''
touch requirements.txt
'';
build-system = [
setuptools
];
dependencies = [
click
requests
tabulate
];
pythonImportsCheck = [
"sotabenchapi"
];
# No tests
doCheck = false;
meta = {
description = "Easily benchmark Machine Learning models on selected tasks and datasets";
homepage = "https://pypi.org/project/sotabenchapi/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ drupol ];
};
}