Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 48 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ lib, buildPythonPackage, fetchFromGitHub, markdown-it-py, pytestCheckHook, pythonOlder, setuptools,}:
buildPythonPackage rec { pname = "mdformat"; version = "0.7.22"; pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub { owner = "executablebooks"; repo = "mdformat"; tag = version; hash = "sha256-WvbGCqfzh7KlNXIGJq09goiyLzVgU7c1+qmsLrIW38k="; };
build-system = [ setuptools ];
dependencies = [ markdown-it-py ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mdformat" ];
passthru = { withPlugins = throw "Use pkgs.mdformat.withPlugins, i.e. the top-level attribute."; };
meta = with lib; { description = "CommonMark compliant Markdown formatter"; homepage = "https://mdformat.rtfd.io/"; changelog = "https://github.com/executablebooks/mdformat/blob/${version}/docs/users/changelog.md"; license = licenses.mit; maintainers = with maintainers; [ fab aldoborrero ]; mainProgram = "mdformat"; };}