Commit 17653aec authored by Sigmanificient's avatar Sigmanificient
Browse files

gcovr: move to pkgs/by-name

parent bdc4a33e
Loading
Loading
Loading
Loading
+17 −21
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  python3Packages,
  fetchPypi,
  colorlog,
  jinja2,
  lxml,
  pygments,
  pythonOlder,
  hatchling,
  hatch-fancy-pypi-readme,
  hatch-vcs,
  tomli,
}:

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

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

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

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

  # pythonRelaxDeps do not work on pyproject.toml
  preBuild = ''
@@ -33,14 +24,19 @@ buildPythonPackage rec {
      --replace-fail "hatchling==1.26.1" "hatchling"
  '';

  dependencies = [
  dependencies =
    with python3Packages;
    (
      [
        colorlog
        jinja2
        lxml
        pygments
        hatch-fancy-pypi-readme
        hatch-vcs
  ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
      ]
      ++ 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.
+0 −2
Original line number Diff line number Diff line
@@ -8797,8 +8797,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
@@ -5152,8 +5152,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 { };