Files
nixpkgs/pkgs/development/python-modules/mdformat-admon/default.nix
T
2024-02-12 23:20:16 +00:00

45 lines
820 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, mdformat
, mdit-py-plugins
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "mdformat-admon";
version = "2.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "KyleKing";
repo = "mdformat-admon";
rev = "refs/tags/v${version}";
hash = "sha256-MRcNExMPH/HIXB2DmN9fA89plo0IZPWXryySK9OZHg8=";
};
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 ];
};
}