I’m using mdformat for markdown formatting. I need to add the mdformat-tables plugin for handling tables. The latter is not packaged in nixpkgs
, so I’ve done so with:
{
mdformat-tables = with nixpkgs.python3Packages; buildPythonPackage rec {
pname = "mdformat_tables";
version = "0.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-MCTojp0p17i7B/1rWcnV3PFNIGASK+KeMOctJ7Zdfak=";
};
propagatedBuildInputs = [ mdformat ];
doCheck = false;
meta = {
description = "An mdformat plugin for rendering tables";
};
};
}
The problem I’m running into is when I include both nixpkgs.mdformat
and the above derivation in a shell environment, mdformat
cannot see the plugin. Is there a step I’m missing to make the plugin visible to mdformat
? I understand visible is subjective, but I suppose in this case I mean importable (i.e. mdformat
can import mdformat-tables
).