2022-01-16 15:22:00 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2022-10-02 13:57:39 +00:00
|
|
|
, python3
|
2023-12-29 07:09:58 +00:00
|
|
|
, testers
|
2022-01-16 15:22:00 +00:00
|
|
|
}:
|
|
|
|
|
2022-10-02 13:57:39 +00:00
|
|
|
let self = with python3.pkgs; buildPythonApplication rec {
|
2022-01-16 15:22:00 +00:00
|
|
|
pname = "mutmut";
|
|
|
|
version = "2.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "boxed";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-G+OL/9km2iUeZ1QCpU73CIWVWMexcs3r9RdCnAsESnY=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt --replace 'junit-xml==1.8' 'junit-xml==1.9'
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ click glob2 parso pony junit-xml ];
|
|
|
|
|
2022-04-20 14:40:48 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = self; };
|
2022-01-16 15:22:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "mutation testing system for Python, with a strong focus on ease of use";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "mutmut";
|
2022-01-16 15:22:00 +00:00
|
|
|
homepage = "https://github.com/boxed/mutmut";
|
|
|
|
changelog = "https://github.com/boxed/mutmut/blob/${version}/HISTORY.rst";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ synthetica ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in self
|