Merge pull request #155234 from Synthetica9/mutmut-init

This commit is contained in:
Patrick Hilhorst 2022-01-21 12:23:15 +01:00 committed by GitHub
commit 23e67cc7fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ lib
, fetchFromGitHub
, buildPythonApplication
, click
, glob2
, parso
, pony
, junit-xml
, pythonOlder
, testVersion
}:
let self = buildPythonApplication rec {
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 ];
passthru.tests.version = testVersion { package = self; };
meta = with lib; {
description = "mutation testing system for Python, with a strong focus on ease of use";
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

View file

@ -5195,6 +5195,8 @@ in {
mutf8 = callPackage ../development/python-modules/mutf8 { };
mutmut = callPackage ../development/python-modules/mutmut { };
mujson = callPackage ../development/python-modules/mujson { };
mwclient = callPackage ../development/python-modules/mwclient { };