43 lines
836 B
Nix
43 lines
836 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchPypi,
|
||
|
setuptools,
|
||
|
sphinx,
|
||
|
plantuml,
|
||
|
pythonOlder,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "sphinxcontrib-plantuml";
|
||
|
version = "0.30";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.7";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
hash = "sha256-KhJmykO930RkCuRBBwA99EkN4rPDFUoNYnz7Y+mhab8=";
|
||
|
};
|
||
|
|
||
|
build-system = [ setuptools ];
|
||
|
|
||
|
dependencies = [ sphinx ];
|
||
|
|
||
|
propagatedBuildInputs = [ plantuml ];
|
||
|
|
||
|
pythonImportsCheck = [ "sphinxcontrib.plantuml" ];
|
||
|
|
||
|
# No tests included.
|
||
|
doCheck = false;
|
||
|
|
||
|
pythonNamespaces = [ "sphinxcontrib" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Provides a Sphinx domain for embedding UML diagram with PlantUML";
|
||
|
homepage = "https://github.com/sphinx-contrib/plantuml/";
|
||
|
license = with licenses; [ bsd2 ];
|
||
|
maintainers = [ ];
|
||
|
};
|
||
|
}
|