depot/third_party/nixpkgs/pkgs/development/python-modules/mdformat-simple-breaks/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

42 lines
820 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, mdformat
, mdit-py-plugins
, pythonOlder
}:
buildPythonPackage rec {
pname = "mdformat-simple-breaks";
version = "0.0.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "csala";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-4lJHB4r9lI2uGJ/BmFFc92sumTRKBBwiRmGBdQkzfd0=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
mdformat
];
pythonImportsCheck = [
"mdformat_simple_breaks"
];
meta = with lib; {
description = "Mdformat plugin to render thematic breaks using three dashes";
homepage = "https://github.com/csala/mdformat-simple-breaks";
license = licenses.mit;
maintainers = with maintainers; [ aldoborrero ];
};
}