c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
44 lines
810 B
Nix
44 lines
810 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flit-core
|
|
, mdformat
|
|
, mdit-py-plugins
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mdformat-admon";
|
|
version = "1.0.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KyleKing";
|
|
repo = "mdformat-admon";
|
|
rev = "v${version}";
|
|
hash = "sha256-33Q3Re/axnoOHZ9XYA32mmK+efsSelJXW8sD7C1M/jU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|