diff --git a/pkgs/development/python-modules/pytest-repeat/default.nix b/pkgs/development/python-modules/pytest-repeat/default.nix index 9bd2ee22ad81..7db1992d5f85 100644 --- a/pkgs/development/python-modules/pytest-repeat/default.nix +++ b/pkgs/development/python-modules/pytest-repeat/default.nix @@ -1,34 +1,44 @@ { lib , buildPythonPackage , fetchPypi -, setuptools-scm , pytest +, pytestCheckHook +, pythonOlder +, setuptools-scm }: buildPythonPackage rec { pname = "pytest-repeat"; - version = "0.9.1"; + version = "0.9.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "5cd3289745ab3156d43eb9c8e7f7d00a926f3ae5c9cf425bec649b2fe15bad5b"; + hash = "sha256-eWc0Ra6ZruMzuBHH0AN660CPkzuImDdf8vT/8eO6aGs="; }; nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ + buildInputs = [ pytest ]; - checkPhase = '' - pytest - ''; + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pytest_repeat" + ]; meta = with lib; { description = "Pytest plugin for repeating tests"; homepage = "https://github.com/pytest-dev/pytest-repeat"; + changelog = "https://github.com/pytest-dev/pytest-repeat/blob/v${version}/CHANGES.rst"; license = licenses.mpl20; maintainers = with maintainers; [ ]; };