1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, mock
6, sphinx-testing
7, sphinx
8, blockdiag
9}:
10
11buildPythonPackage rec {
12 pname = "sphinxcontrib-blockdiag";
13 version = "2.0.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "91fd35b64f1f25db59d80b8a5196ed4ffadf57a81f63ee207e34d53ec36d8f97";
18 };
19
20 buildInputs = [ mock sphinx-testing ];
21 propagatedBuildInputs = [ sphinx blockdiag ];
22
23 # Seems to look for files in the wrong dir
24 doCheck = false;
25 checkPhase = ''
26 ${python.interpreter} -m unittest discover -s tests
27 '';
28
29 meta = with lib; {
30 description = "Sphinx blockdiag extension";
31 homepage = "https://github.com/blockdiag/sphinxcontrib-blockdiag";
32 maintainers = with maintainers; [ ];
33 license = licenses.bsd2;
34 };
35
36}