depot/third_party/nixpkgs/pkgs/development/python-modules/online-judge-tools/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

48 lines
994 B
Nix

{
lib,
buildPythonPackage,
colorama,
fetchFromGitHub,
online-judge-api-client,
packaging,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "online-judge-tools";
version = "12.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "online-judge-tools";
repo = "oj";
rev = "refs/tags/v${version}";
hash = "sha256-m6V4Sq3yU/KPnbpA0oCLI/qaSrAPA6TutcBL5Crb/Cc=";
};
build-system = [ setuptools ];
dependencies = [
colorama
online-judge-api-client
packaging
requests
];
pythonImportsCheck = [
"onlinejudge"
"onlinejudge_command"
];
# 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 ];
};
}