depot/third_party/nixpkgs/pkgs/development/python-modules/mdformat-admon/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

44 lines
820 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, mdformat
, mdit-py-plugins
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "mdformat-admon";
version = "2.0.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "KyleKing";
repo = "mdformat-admon";
rev = "refs/tags/v${version}";
hash = "sha256-zKc0kKap4ipZ+P+RYDXcwqyzq9NKcTnCmx64cApFxFg=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
mdformat
mdit-py-plugins
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Mdformat plugin for admonitions";
homepage = "https://github.com/KyleKing/mdformat-admon";
license = licenses.mit;
maintainers = with maintainers; [ aldoborrero ];
};
}