mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
mdformat-admon: init at 0.4.0
This commit is contained in:
parent
0ee2fe15fc
commit
e24030071b
52
pkgs/development/python-modules/mdformat-admon/default.nix
Normal file
52
pkgs/development/python-modules/mdformat-admon/default.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, mdformat
|
||||
, python3
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
let
|
||||
python = python3.override {
|
||||
packageOverrides = self: super: {
|
||||
mdit-py-plugins = super.mdit-py-plugins.overridePythonAttrs (_prev: rec {
|
||||
version = "0.4.0";
|
||||
doCheck = false;
|
||||
src = fetchFromGitHub {
|
||||
owner = "executablebooks";
|
||||
repo = "mdit-py-plugins";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-YBJu0vIOD747DrJLcqiZMHq34+gHdXeGLCw1OxxzIJ0=";
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
in python.pkgs.buildPythonPackage rec {
|
||||
pname = "mdformat-admon";
|
||||
version = "1.0.2";
|
||||
format = "flit";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "KyleKing";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-33Q3Re/axnoOHZ9XYA32mmK+efsSelJXW8sD7C1M/jU=";
|
||||
};
|
||||
|
||||
buildInputs = with python.pkgs; [
|
||||
mdformat
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python.pkgs; [
|
||||
mdit-py-plugins
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "mdformat plugin for admonitions";
|
||||
homepage = "https://github.com/KyleKing/mdformat-admon";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ aldoborrero ];
|
||||
};
|
||||
}
|
@ -6211,6 +6211,7 @@ self: super: with self; {
|
||||
md2gemini = callPackage ../development/python-modules/md2gemini { };
|
||||
|
||||
mdformat = callPackage ../development/python-modules/mdformat { };
|
||||
mdformat-admon = callPackage ../development/python-modules/mdformat-admon { };
|
||||
mdformat-beautysh = callPackage ../development/python-modules/mdformat-beautysh { };
|
||||
mdformat-footnote = callPackage ../development/python-modules/mdformat-footnote { };
|
||||
mdformat-frontmatter = callPackage ../development/python-modules/mdformat-frontmatter { };
|
||||
|
Loading…
Reference in New Issue
Block a user