mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 15:26:34 +01:00
40 lines
944 B
Nix
40 lines
944 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
pytestCheckHook,
|
|
sphinx,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "sphinx-issues";
|
|
version = "5.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sloria";
|
|
repo = "sphinx-issues";
|
|
tag = version;
|
|
hash = "sha256-/nc5gtZbE1ziMPWIkZTkevMfVkNtJYL/b5QLDeMhzUs=";
|
|
};
|
|
|
|
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 ];
|
|
|
|
dependencies = [ sphinx ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "sphinx_issues" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/sloria/sphinx-issues";
|
|
description = "Sphinx extension for linking to your project's issue tracker";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ kaction ];
|
|
};
|
|
}
|