mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-15 22:19:17 +03:00
49 lines
892 B
Nix
49 lines
892 B
Nix
![]() |
{ lib
|
||
|
, buildPythonPackage
|
||
|
, pythonOlder
|
||
|
, fetchFromGitHub
|
||
|
, poetry-core
|
||
|
, markdown-it-py
|
||
|
, pytest
|
||
|
, pytestCheckHook
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "pytest-markdown-docs";
|
||
|
version = "0.5.1";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.8";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "modal-com";
|
||
|
repo = "pytest-markdown-docs";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-mclN28tfPcoFxswECjbrkeOI51XXSqUXfbvuSHrd7Sw=";
|
||
|
};
|
||
|
|
||
|
build-system = [
|
||
|
poetry-core
|
||
|
];
|
||
|
|
||
|
dependencies = [
|
||
|
markdown-it-py
|
||
|
pytest
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [
|
||
|
"pytest_markdown_docs"
|
||
|
];
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
pytestCheckHook
|
||
|
];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Run pytest on markdown code fence blocks";
|
||
|
homepage = "https://github.com/modal-com/pytest-markdown-docs";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ GaetanLepage ];
|
||
|
};
|
||
|
}
|