18 # NOTE This is needed to download & run another Python program internally in
19 # order to generate test cases for library-checker problems.
20 pythonEnv = python.withPackages (
29 buildPythonPackage rec {
30 pname = "online-judge-api-client";
32 format = "setuptools";
34 src = fetchFromGitHub {
35 owner = "online-judge-tools";
37 rev = "refs/tags/v${version}";
38 hash = "sha256-P0pIjd/YS155dSDpY/ekMp8HnJcM35waV7aoTQiEWHo=";
41 patches = [ ./fix-paths.patch ];
43 substituteInPlace onlinejudge/service/library_checker.py \
44 --subst-var-by git ${git} \
45 --subst-var-by pythonInterpreter ${pythonEnv.interpreter}
48 propagatedBuildInputs = [
58 # Requires internet access
61 pythonImportsCheck = [
67 description = "API client to develop tools for competitive programming";
68 mainProgram = "oj-api";
69 homepage = "https://github.com/online-judge-tools/api-client";
70 license = licenses.mit;
71 maintainers = with maintainers; [ sei40kr ];