mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 10:34:16 +00:00
6865699e39
the test suite pulls in a huge number of dependencies, from cryptography over sphinx to zope. since we want to use markdown-it-py in the nixos manual build and closure size is important we'll skip the test suite for the manual and rely on the regular builds to catch test failures. it's not ideal, but markdown-it-py is the closes thing to the official MyST parser we can get right now.
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, flit-core
|
|
, markdown-it-py
|
|
, pytest-regressions
|
|
, pytestCheckHook
|
|
# allow disabling tests for the nixos manual build.
|
|
# the test suite closure is just too large.
|
|
, disableTests ? false
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mdit-py-plugins";
|
|
version = "0.3.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "executablebooks";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-9eaVM5KxrMY5q0c2KWmctCHyPGmEGGNa9B3LoRL/mcI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
markdown-it-py
|
|
];
|
|
|
|
nativeCheckInputs = lib.optionals (!disableTests) [
|
|
pytestCheckHook
|
|
pytest-regressions
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"mdit_py_plugins"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Collection of core plugins for markdown-it-py";
|
|
homepage = "https://github.com/executablebooks/mdit-py-plugins";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ AluisioASG ];
|
|
};
|
|
}
|