nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 910 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 mdformat, 6 poetry-core, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "mdformat-toc"; 12 version = "0.5.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "hukkin"; 17 repo = "mdformat-toc"; 18 tag = version; 19 hash = "sha256-Rj1lp5Ub+UriOuE896tywN4myovna2RLYO3LRa96FCM="; 20 }; 21 22 nativeBuildInputs = [ poetry-core ]; 23 24 propagatedBuildInputs = [ mdformat ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "mdformat_toc" ]; 29 30 meta = { 31 description = "Mdformat plugin to generate a table of contents"; 32 homepage = "https://github.com/hukkin/mdformat-toc"; 33 license = lib.licenses.mit; 34 maintainers = with lib.maintainers; [ 35 aldoborrero 36 polarmutex 37 ]; 38 broken = true; # broken test due to changes in mdformat; compare https://github.com/KyleKing/mdformat-admon/issues/25 39 }; 40}