Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 31 lines 781 B view raw
1{ lib 2, buildPythonPackage 3, colorama 4, fetchFromGitHub 5, online-judge-api-client 6, requests 7}: 8 9buildPythonPackage rec { 10 pname = "online-judge-tools"; 11 version = "11.5.1"; 12 13 src = fetchFromGitHub { 14 owner = "online-judge-tools"; 15 repo = "oj"; 16 rev = "v${version}"; 17 sha256 = "0zkzmmjgjb6lyrzq1ip54cpnp7al9a7mcyjyi5vx58bvnx3q0c6m"; 18 }; 19 20 propagatedBuildInputs = [ colorama online-judge-api-client requests ]; 21 22 # Requires internet access 23 doCheck = false; 24 25 meta = with lib; { 26 description = "Tools for various online judges. Download sample cases, generate additional test cases, test your code, and submit it."; 27 homepage = "https://github.com/online-judge-tools/oj"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ sei40kr ]; 30 }; 31}