567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
49 lines
982 B
Nix
49 lines
982 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
colorama,
|
|
fetchFromGitHub,
|
|
online-judge-api-client,
|
|
packaging,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "online-judge-tools";
|
|
version = "12.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "online-judge-tools";
|
|
repo = "oj";
|
|
tag = "v${version}";
|
|
hash = "sha256-m6V4Sq3yU/KPnbpA0oCLI/qaSrAPA6TutcBL5Crb/Cc=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
colorama
|
|
online-judge-api-client
|
|
packaging
|
|
requests
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"onlinejudge"
|
|
"onlinejudge_command"
|
|
];
|
|
|
|
# Requires internet access
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Tools for various online judges. Download sample cases, generate additional test cases, test your code, and submit it";
|
|
mainProgram = "oj";
|
|
homepage = "https://github.com/online-judge-tools/oj";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ sei40kr ];
|
|
};
|
|
}
|