summary refs log tree commit diff
path: root/pkgs/development/python-modules/sphinxcontrib-wavedrom/default.nix
blob: 6f35e2b59e32a71e428a4ce6cd6fcabf17f1f24c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ 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 = "A 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 ];
  };
}