blob: 23e9a259be023c98253fd2c4c37ec861a1c187fd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
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";
rev = "refs/tags/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 = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ sei40kr ];
};
}
|