1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # tests 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "mktestdocs"; 15 version = "0.2.5"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "koaning"; 20 repo = "mktestdocs"; 21 tag = version; 22 hash = "sha256-OiOkU/qfxeLbCT1QywA1rGSwe9Ja8tENTmBo93vo0vc="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 pythonImportsCheck = [ "mktestdocs" ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 meta = { 32 description = "Run pytest against markdown files/docstrings"; 33 homepage = "https://github.com/koaning/mktestdocs"; 34 changelog = "https://github.com/koaning/mktestdocs/releases/tag/${version}"; 35 license = lib.licenses.asl20; 36 maintainers = with lib.maintainers; [ GaetanLepage ]; 37 }; 38}