mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
40 lines
966 B
Nix
40 lines
966 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
, testers
|
|
}:
|
|
|
|
let self = with python3.pkgs; 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 = testers.testVersion { package = self; };
|
|
|
|
meta = with lib; {
|
|
description = "mutation testing system for Python, with a strong focus on ease of use";
|
|
mainProgram = "mutmut";
|
|
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
|