Unverified Commit 2830c1b5 authored by Pyrox's avatar Pyrox
Browse files

python312Packages.codecov: drop

this library is deprecated(per upstream
https://github.com/codecov/codecov-python), so it is being removed.
parent d013122d
Loading
Loading
Loading
Loading
+0 −53
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  coverage,
  ddt,
  fetchFromGitHub,
  mock,
  pytestCheckHook,
  requests,
}:

buildPythonPackage rec {
  pname = "codecov";
  version = "2.1.13";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "codecov";
    repo = "codecov-python";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-cZEpAw8uv/XGiGzdBZ9MnabNaTP0did2GT+BkKMJM/E=";
  };

  propagatedBuildInputs = [
    requests
    coverage
  ];

  nativeCheckInputs = [
    ddt
    mock
    pytestCheckHook
  ];

  pytestFlagsArray = [ "tests/test.py" ];

  disabledTests = [
    # No git repo available and network
    "test_bowerrc_none"
    "test_prefix"
    "test_send"
  ];

  pythonImportsCheck = [ "codecov" ];

  meta = with lib; {
    description = "Python report uploader for Codecov";
    mainProgram = "codecov";
    homepage = "https://codecov.io/";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -114,6 +114,7 @@ mapAliases ({
  clvm-tools = throw "clvm-tools has been removed. see https://github.com/NixOS/nixpkgs/pull/270254"; # added 2023-11-26
  clvm-tools-rs = throw "clvm-tools-rs has been removed. see https://github.com/NixOS/nixpkgs/pull/270254"; # added 2023-11-26
  cntk = throw "cntk has been removed from nixpkgs, as it was broken and unmaintained"; # Added 2023-10-09
  codecov = throw "python-codecov has been removed, as it was broken and archived by upstream."; # Added 2024-10-24
  codespell = throw "codespell has been promoted to a top-level attribute name: `pkgs.codespell`"; # Added 2022-10-02
  ColanderAlchemy = colanderalchemy; # added 2023-02-19
  command_runner = command-runner; # added 2024-03-06
+0 −2
Original line number Diff line number Diff line
@@ -2434,8 +2434,6 @@ self: super: with self; {
  cocotb-bus = callPackage ../development/python-modules/cocotb-bus { };
  codecov = callPackage ../development/python-modules/codecov { };
  codepy = callPackage ../development/python-modules/codepy { };
  cogapp = callPackage ../development/python-modules/cogapp { };