Unverified Commit cd6b4e26 authored by Victor Engmark's avatar Victor Engmark
Browse files

mutmut: Simplify context

Avoids `with` except for when every reference is to an attribute within
that attribute set.
parent e713e631
Loading
Loading
Loading
Loading
+40 −45
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  python3,
  mutmut,
  python3Packages,
  testers,
}:

let
  self =
    with python3.pkgs;
    buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
  pname = "mutmut";
  version = "2.2.0";

@@ -23,11 +20,11 @@ let
    substituteInPlace requirements.txt --replace 'junit-xml==1.8' 'junit-xml==1.9'
  '';

      disabled = pythonOlder "3.7";
  disabled = python3Packages.pythonOlder "3.7";

  doCheck = false;

      propagatedBuildInputs = [
  propagatedBuildInputs = with python3Packages; [
    click
    glob2
    parso
@@ -35,7 +32,7 @@ let
    junit-xml
  ];

      passthru.tests.version = testers.testVersion { package = self; };
  passthru.tests.version = testers.testVersion { package = mutmut; };

  meta = with lib; {
    description = "mutation testing system for Python, with a strong focus on ease of use";
@@ -45,6 +42,4 @@ let
    license = licenses.bsd3;
    maintainers = with maintainers; [ synthetica ];
  };
    };
in
self
}