1{
2 lib,
3 buildPythonApplication,
4 appdirs,
5 beautifulsoup4,
6 colorlog,
7 fetchFromGitHub,
8 mako,
9 online-judge-api-client,
10 online-judge-tools,
11 ply,
12 pyyaml,
13 requests,
14 setuptools,
15 toml,
16}:
17
18buildPythonApplication rec {
19 pname = "online-judge-template-generator";
20 version = "4.8.1";
21 format = "setuptools";
22
23 src = fetchFromGitHub {
24 owner = "online-judge-tools";
25 repo = "template-generator";
26 rev = "v${version}";
27 sha256 = "sha256-cS1ED1a92fEFqy6ht8UFjxocWIm35IA/VuaPSLsdlqg=";
28 };
29
30 propagatedBuildInputs = [
31 appdirs
32 beautifulsoup4
33 colorlog
34 mako
35 online-judge-api-client
36 online-judge-tools
37 ply
38 pyyaml
39 requests
40 setuptools
41 toml
42 ];
43
44 # Needs internet to run tests
45 doCheck = false;
46
47 meta = with lib; {
48 description = "Analyze problems of competitive programming and automatically generate boilerplate";
49 homepage = "https://github.com/online-judge-tools/template-generator";
50 license = licenses.mit;
51 maintainers = with maintainers; [ sei40kr ];
52 };
53}