5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
42 lines
847 B
Nix
42 lines
847 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
mdformat,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mdformat-tables";
|
|
version = "0.4.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "executablebooks";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-Q61GmaRxjxJh9GjyR8QCZOH0njFUtAWihZ9lFQJ2nQQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
propagatedBuildInputs = [ mdformat ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "mdformat_tables" ];
|
|
|
|
meta = with lib; {
|
|
description = "Mdformat plugin for rendering tables";
|
|
homepage = "https://github.com/executablebooks/mdformat-tables";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
aldoborrero
|
|
polarmutex
|
|
];
|
|
};
|
|
}
|