Commit 34138e8d authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python3Packages.sphinx-issues: 3.0.1 -> 5.0.1

This commit was automatically generated using update-python-libraries.
parent e0e17440
Loading
Loading
Loading
Loading
+18 −7
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  sphinx,
  fetchFromGitHub,
  flit-core,
  pytestCheckHook,
  sphinx,
}:
buildPythonPackage rec {
  pname = "sphinx-issues";
  version = "3.0.1";
  format = "setuptools";
  version = "5.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sloria";
    repo = "sphinx-issues";
    rev = version;
    sha256 = "1lns6isq9kwcw8z4jwgy927f7idx9srvri5adaa5zmypw5x47hha";
    tag = version;
    hash = "sha256-/nc5gtZbE1ziMPWIkZTkevMfVkNtJYL/b5QLDeMhzUs=";
  };

  pythonImportsCheck = [ "sphinx_issues" ];
  postPatch = ''
    substituteInPlace tests/test_sphinx_issues.py \
      --replace-fail 'Path(sys.executable).parent.joinpath("sphinx-build")' '"${lib.getExe' sphinx "sphinx-build"}"'
  '';

  build-system = [ flit-core ];

  propagatedBuildInputs = [ sphinx ];
  dependencies = [ sphinx ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "sphinx_issues" ];

  meta = {
    homepage = "https://github.com/sloria/sphinx-issues";