diff options
| author | Patrick Hilhorst <git@hilhorst.be> | 2022-01-16 16:22:00 +0100 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-01-21 11:27:17 +0000 |
| commit | e87b979ddf6c6c69781fc3a7a851a67b34cffe7b (patch) | |
| tree | 4df19f4654df0acc2a98cabe578a21d5f2128190 | |
| parent | Merge pull request #156023 from NixOS/backport-155929-to-release-21.11 (diff) | |
| download | nixpkgs-e87b979ddf6c6c69781fc3a7a851a67b34cffe7b.tar.gz | |
python3Packages.mutmut: init at 2.2.0
(cherry picked from commit 4326ef50cfee1d36b026e9f79744466080494eab)
| -rw-r--r-- | pkgs/development/python-modules/mutmut/default.nix | 44 | ||||
| -rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mutmut/default.nix b/pkgs/development/python-modules/mutmut/default.nix new file mode 100644 index 000000000000..ae0f06213a87 --- /dev/null +++ b/pkgs/development/python-modules/mutmut/default.nix @@ -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 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4eae99f0d7b5..f0c246a3318c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5007,6 +5007,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 { }; |
