bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
45 lines
900 B
Nix
45 lines
900 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchPypi,
|
|
setuptools-scm,
|
|
sphinx,
|
|
wavedrom,
|
|
xcffib,
|
|
cairosvg,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinxcontrib-wavedrom";
|
|
version = "3.0.4";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-0zTHVBr9kXwMEo4VRTFsxdX2HI31DxdHfLUHCQmw1Ko=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
sphinx
|
|
wavedrom
|
|
xcffib
|
|
cairosvg
|
|
];
|
|
|
|
# No tests included
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "sphinxcontrib.wavedrom" ];
|
|
|
|
pythonNamespaces = [ "sphinxcontrib" ];
|
|
|
|
meta = with lib; {
|
|
description = "Sphinx extension that allows including wavedrom diagrams by using its text-based representation";
|
|
homepage = "https://github.com/bavovanachte/sphinx-wavedrom";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fsagbuya ];
|
|
};
|
|
}
|