2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
colorama,
|
|
|
|
fetchFromGitHub,
|
|
|
|
online-judge-api-client,
|
|
|
|
packaging,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
2022-01-25 03:21:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "online-judge-tools";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "12.0.0";
|
|
|
|
pyproject = true;
|
2022-01-25 03:21:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "online-judge-tools";
|
|
|
|
repo = "oj";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-m6V4Sq3yU/KPnbpA0oCLI/qaSrAPA6TutcBL5Crb/Cc=";
|
2022-01-25 03:21:06 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
colorama
|
|
|
|
online-judge-api-client
|
|
|
|
packaging
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"onlinejudge"
|
|
|
|
"onlinejudge_command"
|
|
|
|
];
|
2022-01-25 03:21:06 +00:00
|
|
|
|
|
|
|
# Requires internet access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tools for various online judges. Download sample cases, generate additional test cases, test your code, and submit it.";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "oj";
|
2022-01-25 03:21:06 +00:00
|
|
|
homepage = "https://github.com/online-judge-tools/oj";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sei40kr ];
|
|
|
|
};
|
|
|
|
}
|