depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-test-utils/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
937 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
pytestCheckHook,
pytest,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pytest-test-utils";
version = "0.1.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "iterative";
repo = "pytest-test-utils";
rev = "refs/tags/${version}";
hash = "sha256-19oNAFff++7ntMdlnMXYc2w5I+EzGwWJh+rB1IjNZGk=";
};
build-system = [
setuptools
setuptools-scm
];
buildInputs = [ pytest ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pytest_test_utils" ];
meta = with lib; {
description = "Pytest utilities for tests";
homepage = "https://github.com/iterative/pytest-test-utils";
changelog = "https://github.com/iterative/pytest-test-utils/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}