Unverified Commit a466f5f1 authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

gcovr: 8.2 -> 8.3, move to `pkgs/by-name` (#386508)

parents ec886d10 17653aec
Loading
Loading
Loading
Loading
+27 −20
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  python3Packages,
  fetchPypi,
  colorlog,
  jinja2,
  lxml,
  pygments,
  pythonOlder,
  setuptools,
  tomli,
}:

buildPythonPackage rec {
python3Packages.buildPythonPackage rec {
  pname = "gcovr";
  version = "8.2";
  version = "8.3";
  pyproject = true;

  disabled = pythonOlder "3.9";
  disabled = python3Packages.pythonOlder "3.9";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-mh3d1FhdE+x3VV211rajHugVh+pvxgT/n80jLLB4LfU=";
    hash = "sha256-+qNx+cSn94yYANplUQfU+Z8EtxjRwNn0jK/cvvAEkHk=";
  };

  build-system = [ setuptools ];
  build-system = [ python3Packages.hatchling ];

  dependencies = [
  # pythonRelaxDeps do not work on pyproject.toml
  preBuild = ''
    substituteInPlace pyproject.toml \
      --replace-fail "hatchling==1.26.1" "hatchling"
  '';

  dependencies =
    with python3Packages;
    (
      [
        colorlog
        jinja2
        lxml
        pygments
  ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
        hatch-fancy-pypi-readme
        hatch-vcs
      ]
      ++ lib.optionals (pythonOlder "3.11") [ tomli ]
    );

  # There are no unit tests in the pypi tarball. Most of the unit tests on the
  # github repository currently only work with gcc5, so we just disable them.
  # See also: https://github.com/gcovr/gcovr/issues/206
  # Despite the CI passing many GCC version, ~300 tests are failing on nixos
  doCheck = false;

  pythonImportsCheck = [
+0 −2
Original line number Diff line number Diff line
@@ -8778,8 +8778,6 @@ with pkgs;
    protobuf = protobuf_21;
  };
  gcovr = with python3Packages; toPythonApplication gcovr;
  gcr = callPackage ../development/libraries/gcr { };
  gcr_4 = callPackage ../development/libraries/gcr/4.nix { };
+0 −2
Original line number Diff line number Diff line
@@ -5188,8 +5188,6 @@ self: super: with self; {
  gcodepy = callPackage ../development/python-modules/gcodepy { };
  gcovr = callPackage ../development/python-modules/gcovr { };
  gcp-storage-emulator = callPackage ../development/python-modules/gcp-storage-emulator { };
  gcsa = callPackage ../development/python-modules/gcsa { };