Files
nixpkgs/pkgs/development/python-modules/pytest-lazy-fixtures/default.nix
Martin Weinelt 8981085818 python3Packages.pytest-lazy-fixtures: 1.1.2 -> 1.3.2
This commit was automatically generated using update-python-libraries.
2025-08-09 19:02:46 +02:00

49 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytest,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pytest-lazy-fixtures";
version = "1.3.2";
pyproject = true;
src = fetchFromGitHub {
owner = "dev-petrov";
repo = "pytest-lazy-fixtures";
tag = version;
hash = "sha256-h2Zm8Vbw3L9WeXaeFE/fJqiOgI3r+XnJUnnELDkmyaU=";
};
postPatch = ''
# Prevent double registration here and in the pyproject.toml entrypoint
# ValueError: Plugin already registered under a different name:
substituteInPlace tests/conftest.py \
--replace-fail '"pytest_lazy_fixtures.plugin",' ""
'';
build-system = [ hatchling ];
dependencies = [ pytest ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# missing pytest-deadfixtures
"tests/test_deadfixtures_support.py"
];
pythonImportsCheck = [ "pytest_lazy_fixtures" ];
meta = with lib; {
description = "Allows you to use fixtures in @pytest.mark.parametrize";
homepage = "https://github.com/dev-petrov/pytest-lazy-fixtures";
license = licenses.mit;
maintainers = [ ];
};
}