Merge pull request #177029 from loicreynier/feat-pythonpackages-myst-parser-init

pythonPackages.myst-parser: init at 0.18.0
This commit is contained in:
Fabian Affolter 2022-06-13 23:27:43 +02:00 committed by GitHub
commit dbf3af5294
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 162 additions and 0 deletions

View file

@ -0,0 +1,71 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pythonOlder
, docutils
, jinja2
, markdown-it-py
, mdit-py-plugins
, pyyaml
, sphinx
, typing-extensions
, beautifulsoup4
, pytest-param-files
, pytest-regressions
, sphinx-pytest
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "myst-parser";
version = "0.18.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "executablebooks";
repo = pname;
rev = "v${version}";
sha256 = "sha256-GEtrC7o5YnkuvBfQQfhG5P74QMiHz63Fdh1cC/r5CF0=";
};
format = "flit";
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
docutils
jinja2
mdit-py-plugins
markdown-it-py
pyyaml
sphinx
typing-extensions
];
pythonImportsCheck = [ "myst_parser" ];
checkInputs = [
beautifulsoup4
pytest-param-files
pytest-regressions
sphinx-pytest
pytestCheckHook
];
disabledTests = [
# AssertionError due to different files
"test_basic"
"test_footnotes"
"test_gettext_html"
"test_fieldlist_extension"
];
meta = with lib; {
description = "Sphinx and Docutils extension to parse MyST";
homepage = "https://myst-parser.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ loicreynier ];
};
}

View file

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-param-files";
version = "0.3.4";
src = fetchFromGitHub {
owner = "chrisjsewell";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Q7wWoggJN2w2a2umQHx5TsVcugqpovBEtOKruNMZQ8A=";
};
format = "flit";
nativeBuildInputs = [ flit-core ];
buildInputs = [
pytest
];
pythonImportsCheck = [ "pytest_param_files" ];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Package to generate parametrized pytests from external files";
homepage = "https://github.com/chrisjsewell/pytest-param-files";
license = licenses.mit;
maintainers = with maintainers; [ loicreynier ];
};
}

View file

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytest
, sphinx
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "sphinx-pytest";
version = "0.0.3";
src = fetchFromGitHub {
owner = "chrisjsewell";
repo = pname;
rev = "v${version}";
sha256 = "sha256-vRHPq6BAuhn5QvHG2BGen9v6ezA3RgFVtustsNxU+n8=";
};
format = "flit";
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
sphinx
];
buildInputs = [
pytest
];
pythonImportsCheck = [ "sphinx_pytest" ];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Helpful pytest fixtures for Sphinx extensions";
homepage = "https://github.com/chrisjsewell/sphinx-pytest";
license = licenses.mit;
maintainers = with maintainers; [ loicreynier ];
};
}

View file

@ -5651,6 +5651,8 @@ in {
mysql-connector = callPackage ../development/python-modules/mysql-connector { };
myst-parser = callPackage ../development/python-modules/myst-parser { };
nad-receiver = callPackage ../development/python-modules/nad-receiver { };
nagiosplugin = callPackage ../development/python-modules/nagiosplugin { };
@ -8346,6 +8348,8 @@ in {
pytest-ordering = callPackage ../development/python-modules/pytest-ordering { };
pytest-param-files = callPackage ../development/python-modules/pytest-param-files { };
pytest-pylint = callPackage ../development/python-modules/pytest-pylint { };
pytest-qt = callPackage ../development/python-modules/pytest-qt { };
@ -9925,6 +9929,8 @@ in {
sphinx-better-theme = callPackage ../development/python-modules/sphinx-better-theme { };
sphinx-pytest = callPackage ../development/python-modules/sphinx-pytest { };
sphinxcontrib-actdiag = callPackage ../development/python-modules/sphinxcontrib-actdiag { };
sphinxcontrib-apidoc = callPackage ../development/python-modules/sphinxcontrib-apidoc { };