diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/online-judge-template-generator/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/online-judge-template-generator/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/online-judge-template-generator/default.nix b/nixpkgs/pkgs/tools/misc/online-judge-template-generator/default.nix new file mode 100644 index 000000000000..e867059eff3a --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/online-judge-template-generator/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonApplication +, appdirs +, beautifulsoup4 +, colorlog +, fetchFromGitHub +, mako +, online-judge-api-client +, online-judge-tools +, ply +, pyyaml +, requests +, setuptools +, toml +}: + +buildPythonApplication rec { + pname = "online-judge-template-generator"; + version = "4.8.1"; + + src = fetchFromGitHub { + owner = "online-judge-tools"; + repo = "template-generator"; + rev = "v${version}"; + sha256 = "sha256-cS1ED1a92fEFqy6ht8UFjxocWIm35IA/VuaPSLsdlqg="; + }; + + propagatedBuildInputs = [ + appdirs + beautifulsoup4 + colorlog + mako + online-judge-api-client + online-judge-tools + ply + pyyaml + requests + setuptools + toml + ]; + + # Needs internet to run tests + doCheck = false; + + meta = with lib; { + description = "Analyze problems of competitive programming and automatically generate boilerplate"; + homepage = "https://github.com/online-judge-tools/template-generator"; + license = licenses.mit; + maintainers = with maintainers; [ sei40kr ]; + }; +} |