diff options
Diffstat (limited to 'pkgs/development/python-modules/pytest-test-utils/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pytest-test-utils/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
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 00000000000..e1fa22f79d3 --- /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 ]; + }; +} |