13 buildPythonPackage rec {
14 pname = "pytest-examples";
18 disabled = pythonOlder "3.8";
20 src = fetchFromGitHub {
22 repo = "pytest-examples";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-jCxOGDJlFkMH9VtaaPsE5zt+p3Z/mrVzhdNSI51/nVM=";
28 # ruff binary is used directly, the ruff Python package is not needed
29 substituteInPlace pytest_examples/lint.py \
30 --replace "'ruff'" "'${ruff}/bin/ruff'"
46 propagatedBuildInputs = [
55 pythonImportsCheck = [
60 # Test fails with latest ruff v0.1.2
61 # See https://github.com/pydantic/pytest-examples/issues/26
66 description = "Pytest plugin for testing examples in docstrings and markdown files";
67 homepage = "https://github.com/pydantic/pytest-examples";
68 changelog = "https://github.com/pydantic/pytest-examples/releases/tag/v${version}";
69 license = licenses.mit;
70 maintainers = with maintainers; [ fab ];