about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/online-judge-tools/default.nix
blob: a86b4114523763c4e6c37aa2bb61c4e0b774d38c (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
{ lib
, buildPythonPackage
, colorama
, fetchFromGitHub
, online-judge-api-client
, requests
}:

buildPythonPackage rec {
  pname = "online-judge-tools";
  version = "11.5.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "online-judge-tools";
    repo = "oj";
    rev = "v${version}";
    sha256 = "0zkzmmjgjb6lyrzq1ip54cpnp7al9a7mcyjyi5vx58bvnx3q0c6m";
  };

  propagatedBuildInputs = [ colorama online-judge-api-client requests ];

  # 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 ];
  };
}