diff --git a/pkgs/development/python-modules/pytest-test-utils/default.nix b/pkgs/development/python-modules/pytest-test-utils/default.nix new file mode 100644 index 000000000000..e1fa22f79d3f --- /dev/null +++ b/pkgs/development/python-modules/pytest-test-utils/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pytest +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pytest-test-utils"; + version = "0.0.6"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "iterative"; + repo = pname; + rev = version; + hash = "sha256-0lShdMNP2suN+JO0uKWwjsGQxFCRnCZEQp2h9hQNrrA="; + }; + + buildInputs = [ + pytest + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pytest_test_utils" + ]; + + meta = with lib; { + description = "Pytest utilities for tests"; + homepage = "https://github.com/iterative/pytest-test-utils"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6a814bf7f284..61736ee55a83 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8289,6 +8289,8 @@ in { pytest-sugar = callPackage ../development/python-modules/pytest-sugar { }; + pytest-test-utils = callPackage ../development/python-modules/pytest-test-utils { }; + pytest-testmon = callPackage ../development/python-modules/pytest-testmon { }; pytest-timeout = callPackage ../development/python-modules/pytest-timeout { };