1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flit-core 5, pytest 6, sphinx 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "sphinx-pytest"; 12 version = "0.2.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "chrisjsewell"; 17 repo = pname; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-oSBBt+hSMs4mvGqibQHoYHXr2j/bpsGOnIMfwfTfWKQ="; 20 }; 21 22 nativeBuildInputs = [ 23 flit-core 24 ]; 25 26 propagatedBuildInputs = [ 27 sphinx 28 ]; 29 30 buildInputs = [ 31 pytest 32 ]; 33 34 pythonImportsCheck = [ 35 "sphinx_pytest" 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 meta = with lib; { 43 changelog = "https://github.com/sphinx-extensions2/sphinx-pytest/releases/tag/v${version}"; 44 description = "Helpful pytest fixtures for Sphinx extensions"; 45 homepage = "https://github.com/chrisjsewell/sphinx-pytest"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ loicreynier ]; 48 }; 49}