From e324721efda6885061fed5cad4445075254849d0 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sun, 31 Jan 2021 08:08:22 +0000 Subject: [PATCH 1/2] python37Packages.nose2: 0.9.2 -> 0.10.0 --- pkgs/development/python-modules/nose2/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/nose2/default.nix b/pkgs/development/python-modules/nose2/default.nix index 29ea73619ff1..74ef884a9575 100644 --- a/pkgs/development/python-modules/nose2/default.nix +++ b/pkgs/development/python-modules/nose2/default.nix @@ -8,14 +8,14 @@ buildPythonPackage rec { pname = "nose2"; - version = "0.9.2"; + version = "0.10.0"; # Requires mock 2.0.0 if python < 3.6, but NixPkgs has mock 3.0.5. disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "0pmbb6nk31yhgh4zkcblzxsznml7f7pf5q1ihgrwvbxv4mwzfql7"; + sha256 = "886ba617a96de0130c54b24479bd5c2d74d5c940d40f3809c3a275511a0c4a60"; }; propagatedBuildInputs = [ six coverage ]; From f9deaf73c2a1bdf277da7d98f5b6be3781627e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 31 Jan 2021 09:37:30 +0100 Subject: [PATCH 2/2] python3Packages.nose2: run tests --- pkgs/development/python-modules/nose2/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/nose2/default.nix b/pkgs/development/python-modules/nose2/default.nix index 74ef884a9575..004991e1ce9d 100644 --- a/pkgs/development/python-modules/nose2/default.nix +++ b/pkgs/development/python-modules/nose2/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, python , six , pythonOlder , coverage @@ -20,8 +21,9 @@ buildPythonPackage rec { propagatedBuildInputs = [ six coverage ]; - # AttributeError: 'module' object has no attribute 'collector' - doCheck = false; + checkPhase = '' + ${python.interpreter} -m unittest + ''; meta = with lib; { description = "nose2 is the next generation of nicer testing for Python";