Skip to content

Commit 3add64b

Browse files
drupolGaetanLepage
andcommitted
python312Packages.sotabenchapi: init at 0.0.16
Co-authored-by: Gaétan Lepage <[email protected]>
1 parent cf5c8c3 commit 3add64b

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchPypi,
5+
setuptools,
6+
click,
7+
requests,
8+
tabulate,
9+
}:
10+
11+
let
12+
version = "0.0.16";
13+
pname = "sotabenchapi";
14+
in
15+
buildPythonPackage {
16+
inherit pname version;
17+
pyproject = true;
18+
19+
src = fetchPypi {
20+
inherit pname version;
21+
hash = "sha256-thbVH4aLmEgi8K17PkmbUg4nHqGj+dEiXPDILjvQMzk=";
22+
};
23+
24+
# requirements.txt is missing in the Pypi archive and this makes the setup.py script fails
25+
postPatch = ''
26+
touch requirements.txt
27+
'';
28+
29+
build-system = [
30+
setuptools
31+
];
32+
33+
dependencies = [
34+
click
35+
requests
36+
tabulate
37+
];
38+
39+
pythonImportsCheck = [
40+
"sotabenchapi"
41+
];
42+
43+
# No tests
44+
doCheck = false;
45+
46+
meta = {
47+
description = "Easily benchmark Machine Learning models on selected tasks and datasets";
48+
homepage = "https://pypi.org/project/sotabenchapi/";
49+
license = lib.licenses.asl20;
50+
maintainers = with lib.maintainers; [ drupol ];
51+
};
52+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14649,6 +14649,8 @@ self: super: with self; {
1464914649

1465014650
sortedcontainers = callPackage ../development/python-modules/sortedcontainers { };
1465114651

14652+
sotabenchapi = callPackage ../development/python-modules/sotabenchapi { };
14653+
1465214654
soundcard = callPackage ../development/python-modules/soundcard { };
1465314655

1465414656
soundcloud-v2 = callPackage ../development/python-modules/soundcloud-v2 { };

0 commit comments

Comments
 (0)