diff --git a/pkgs/by-name/on/online-judge-verify-helper/package.nix b/pkgs/by-name/on/online-judge-verify-helper/package.nix index f3a0b05d370d..9d8c6bbb66f8 100644 --- a/pkgs/by-name/on/online-judge-verify-helper/package.nix +++ b/pkgs/by-name/on/online-judge-verify-helper/package.nix @@ -1,4 +1,60 @@ { + lib, + fetchFromGitHub, python3Packages, }: -python3Packages.toPythonApplication python3Packages.online-judge-verify-helper + +python3Packages.buildPythonApplication (finalAttrs: { + pname = "online-judge-verify-helper"; + version = "5.6.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "online-judge-tools"; + repo = "verification-helper"; + tag = "v${finalAttrs.version}"; + hash = "sha256-sBR9/rf8vpDRbRD8HO2VNmxVckXPmPjUih7ogLRFaW8="; + }; + + build-system = with python3Packages; [ + setuptools + ]; + + dependencies = with python3Packages; [ + colorlog + importlab + online-judge-tools + pyyaml + setuptools + toml + ]; + + nativeCheckInputs = with python3Packages; [ + pytestCheckHook + ]; + + # No additional dependencies or network access + disabledTestPaths = [ + "tests/test_docs.py" + "tests/test_python.py" + "tests/test_rust.py" + "tests/test_stats.py" + "tests/test_verify.py" + ]; + + pythonImportsCheck = [ + "onlinejudge" + "onlinejudge_bundle" + "onlinejudge_verify" + "onlinejudge_verify_resources" + ]; + + meta = { + description = "Testing framework for snippet libraries used in competitive programming"; + mainProgram = "oj-verify"; + homepage = "https://github.com/online-judge-tools/verification-helper"; + changelog = "https://github.com/online-judge-tools/verification-helper/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ toyboot4e ]; + }; +}) diff --git a/pkgs/development/python-modules/online-judge-verify-helper/default.nix b/pkgs/development/python-modules/online-judge-verify-helper/default.nix deleted file mode 100644 index b457ebf2e38a..000000000000 --- a/pkgs/development/python-modules/online-judge-verify-helper/default.nix +++ /dev/null @@ -1,69 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - pythonOlder, - - colorlog, - importlab, - online-judge-tools, - pyyaml, - setuptools, - toml, - - pytestCheckHook, -}: - -buildPythonPackage rec { - pname = "online-judge-verify-helper"; - version = "5.6.0"; - pyproject = true; - disabled = pythonOlder "3.12"; - - src = fetchFromGitHub { - owner = "online-judge-tools"; - repo = "verification-helper"; - tag = "v${version}"; - hash = "sha256-sBR9/rf8vpDRbRD8HO2VNmxVckXPmPjUih7ogLRFaW8="; - }; - - build-system = [ setuptools ]; - - dependencies = [ - colorlog - importlab - online-judge-tools - pyyaml - setuptools - toml - ]; - - nativeCheckInputs = [ - pytestCheckHook - ]; - - # No additional dependencies or network access - disabledTestPaths = [ - "tests/test_docs.py" - "tests/test_python.py" - "tests/test_rust.py" - "tests/test_stats.py" - "tests/test_verify.py" - ]; - - pythonImportsCheck = [ - "onlinejudge" - "onlinejudge_bundle" - "onlinejudge_verify" - "onlinejudge_verify_resources" - ]; - - meta = { - description = "Testing framework for snippet libraries used in competitive programming"; - mainProgram = "oj-verify"; - homepage = "https://github.com/online-judge-tools/verification-helper"; - changelog = "https://github.com/online-judge-tools/verification-helper/releases/tag/v${version}"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ toyboot4e ]; - }; -} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7f16dba5864d..fe7934517d71 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11630,10 +11630,6 @@ self: super: with self; { online-judge-tools = callPackage ../development/python-modules/online-judge-tools { }; - online-judge-verify-helper = - callPackage ../development/python-modules/online-judge-verify-helper - { }; - onlinepayments-sdk-python3 = callPackage ../development/python-modules/onlinepayments-sdk-python3 { };