1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 click, 7 requests, 8 tabulate, 9}: 10 11let 12 version = "0.0.16"; 13 pname = "sotabenchapi"; 14in 15buildPythonPackage { 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; [ ]; 51 }; 52}