Unverified Commit 282a48c8 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

python3Packages.sphinxcontrib-mermaid: init at 1.0.0, python3Packages.apeye:...

 python3Packages.sphinxcontrib-mermaid: init at 1.0.0, python3Packages.apeye: init at 1.4.1, python3Packages.autodocsumm: init at 0.2.14, python3Packages.dict2css: init at 0.3.0.post1, python3Packages.sphinx-jinja2-compat: init at 0.4.1, python3Packages.sphinx-toolbox: init at 4.0.0 (#463822)
parents c0300059 c5fdd717
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchPypi,
  flit-core,
  apeye-core,
  domdf-python-tools,
  platformdirs,
  requests,
  lib,
}:
buildPythonPackage rec {
  pname = "apeye";
  version = "1.4.1";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "apeye";
    hash = "sha256-FOpUL61onjv9vaIYmjVKSQjpCu5L+EwVq3XWhFPXajY=";
  };

  build-system = [ flit-core ];

  dependencies = [
    apeye-core
    domdf-python-tools
    platformdirs
    requests
  ];

  pythonImportsCheck = [ "apeye" ];

  meta = {
    description = "Handy tools for working with URLs and APIs";
    homepage = "https://github.com/domdfcoding/apeye";
    license = lib.licenses.gpl3Plus;
    maintainers = [ ];
  };
}
+35 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchPypi,
  setuptools,
  versioneer,
  sphinx,
  lib,
}:
buildPythonPackage rec {
  pname = "autodocsumm";
  version = "0.2.14";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "autodocsumm";
    hash = "sha256-KDmp1PrMPE7M0wbAhpVUCREEK0bur83DID5tC6tAvHc=";
  };

  build-system = [ setuptools ];

  dependencies = [
    versioneer
    sphinx
  ];

  pythonImportsCheck = [ "autodocsumm" ];

  meta = {
    description = "Extended sphinx autodoc including automatic autosummaries";
    homepage = "https://github.com/Chilipp/autodocsumm";
    license = lib.licenses.asl20;
    maintainers = [ ];
  };
}
+31 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchPypi,
  whey,
  cssutils,
  lib,
}:
buildPythonPackage rec {
  pname = "dict2css";
  version = "0.3.0.post1";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "dict2css";
    hash = "sha256-icVEwhxMp0csP/+50309km9gYymv23Udwd5npBG3Bxk=";
  };

  build-system = [ whey ];

  dependencies = [ cssutils ];

  pythonImportsCheck = [ "dict2css" ];

  meta = {
    description = "μ-library for constructing cascading style sheets from Python dictionaries";
    homepage = "https://github.com/sphinx-toolbox/dict2css";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}
+47 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchPypi,
  whey,
  whey-pth,
  jinja2,
  markupsafe,
  standard-imghdr,
  lib,
}:
buildPythonPackage rec {
  pname = "sphinx-jinja2-compat";
  version = "0.4.1";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "sphinx_jinja2_compat";
    hash = "sha256-AYjwgC1Cw9pymXUztVoAgVZZp40/gdS0dHsfsVpXKOY=";
  };

  postPatch = ''
    substituteInPlace \
      requirements.txt PKG-INFO pyproject.toml \
      --replace-fail "standard-imghdr==3.10.14" "standard-imghdr"
  '';

  build-system = [
    whey
    whey-pth
  ];

  dependencies = [
    jinja2
    markupsafe
    standard-imghdr
  ];

  pythonImportsCheck = [ "sphinx_jinja2_compat" ];

  meta = {
    description = "Patches Jinja2 v3 to restore compatibility with earlier Sphinx versions";
    homepage = "https://github.com/sphinx-toolbox/sphinx-jinja2-compat";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}
+69 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchPypi,
  lib,
  whey,
  sphinx,
  apeye,
  autodocsumm,
  beautifulsoup4,
  cachecontrol,
  dict2css,
  filelock,
  html5lib,
  ruamel-yaml,
  sphinx-autodoc-typehints,
  sphinx-jinja2-compat,
  sphinx-prompt,
  sphinx-tabs,
  tabulate,
  python,
}:
buildPythonPackage rec {
  pname = "sphinx-toolbox";
  version = "4.0.0";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "sphinx_toolbox";
    hash = "sha256-SMMUUdsuLYxxwDk55yoZ73vJLKeFCmLbY/x7uDlbZ4U=";
  };

  postPatch = ''
    substituteInPlace \
      requirements.txt PKG-INFO pyproject.toml \
      --replace-fail "sphinx-tabs<3.4.7,>=1.2.1" "sphinx-tabs<=3.4.7,>=1.2.1"
  '';

  build-system = [ whey ];

  dependencies = [
    sphinx
    apeye
    autodocsumm
    beautifulsoup4
    cachecontrol
    dict2css
    filelock
    html5lib
    ruamel-yaml
    sphinx-autodoc-typehints
    sphinx-jinja2-compat
    sphinx-prompt
    sphinx-tabs
    tabulate
  ];

  # Not PEP420 compliant, some variables are imported from within the package.
  postFixup = ''
    echo '__version__: str = "${version}"' > $out/${python.sitePackages}/sphinx_toolbox/__init__.py
  '';

  meta = {
    description = "Box of handy tools for Sphinx";
    homepage = "https://github.com/sphinx-toolbox/sphinx-toolbox";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}
Loading