1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools-scm,
6 sphinx,
7 wavedrom,
8 xcffib,
9 cairosvg,
10}:
11
12buildPythonPackage rec {
13 pname = "sphinxcontrib-wavedrom";
14 version = "3.0.4";
15 pyproject = true;
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-0zTHVBr9kXwMEo4VRTFsxdX2HI31DxdHfLUHCQmw1Ko=";
20 };
21
22 nativeBuildInputs = [ setuptools-scm ];
23
24 propagatedBuildInputs = [
25 sphinx
26 wavedrom
27 xcffib
28 cairosvg
29 ];
30
31 # No tests included
32 doCheck = false;
33
34 pythonImportsCheck = [ "sphinxcontrib.wavedrom" ];
35
36 pythonNamespaces = [ "sphinxcontrib" ];
37
38 meta = with lib; {
39 description = "Sphinx extension that allows including wavedrom diagrams by using its text-based representation";
40 homepage = "https://github.com/bavovanachte/sphinx-wavedrom";
41 license = licenses.mit;
42 maintainers = with maintainers; [ fsagbuya ];
43 };
44}