mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
Merge pull request #156712 from sei40kr/init-online-judge-template-generator
This commit is contained in:
commit
305f164ce3
51
pkgs/tools/misc/online-judge-template-generator/default.nix
Normal file
51
pkgs/tools/misc/online-judge-template-generator/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -5117,6 +5117,8 @@ with pkgs;
|
|||
|
||||
orjail = callPackage ../tools/security/orjail { };
|
||||
|
||||
online-judge-template-generator = python3Packages.callPackage ../tools/misc/online-judge-template-generator { };
|
||||
|
||||
online-judge-tools = with python3.pkgs; toPythonApplication online-judge-tools;
|
||||
|
||||
onnxruntime = callPackage ../development/libraries/onnxruntime {
|
||||
|
|
Loading…
Reference in a new issue