nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 981 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 hatchling, 8 9 # dependencies 10 markdown-it-py, 11 pytest, 12 13 # tests 14 mdit-py-plugins, 15 pytestCheckHook, 16}: 17 18buildPythonPackage (finalAttrs: { 19 pname = "pytest-markdown-docs"; 20 version = "0.9.1"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "modal-com"; 25 repo = "pytest-markdown-docs"; 26 tag = "v${finalAttrs.version}"; 27 hash = "sha256-7fGuKTHeaMEbsHD9Zje0ODP2FRWSi0WrCZsPwRYP6rg="; 28 }; 29 30 build-system = [ hatchling ]; 31 32 pythonRelaxDeps = [ 33 "markdown-it-py" 34 ]; 35 dependencies = [ 36 markdown-it-py 37 pytest 38 ]; 39 40 pythonImportsCheck = [ "pytest_markdown_docs" ]; 41 42 nativeCheckInputs = [ 43 mdit-py-plugins 44 pytestCheckHook 45 ]; 46 47 meta = { 48 description = "Run pytest on markdown code fence blocks"; 49 homepage = "https://github.com/modal-com/pytest-markdown-docs"; 50 license = lib.licenses.mit; 51 maintainers = with lib.maintainers; [ GaetanLepage ]; 52 }; 53})