depot/third_party/nixpkgs/pkgs/development/python-modules/mdformat-tables/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

42 lines
800 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mdformat
, mdit-py-plugins
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "mdformat-tables";
version = "0.4.1";
format = "flit";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "executablebooks";
repo = pname;
rev = "v${version}";
hash = "sha256-Q61GmaRxjxJh9GjyR8QCZOH0njFUtAWihZ9lFQJ2nQQ=";
};
buildInputs = [
mdformat
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"mdformat_tables"
];
meta = with lib; {
description = "An mdformat plugin for rendering tables";
homepage = "https://github.com/executablebooks/mdformat-tables";
license = licenses.mit;
maintainers = with maintainers; [ aldoborrero polarmutex ];
};
}