2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-27 15:22:02 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, mock
|
|
|
|
, sphinx-testing
|
|
|
|
, sphinx
|
|
|
|
, blockdiag
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinxcontrib-blockdiag";
|
2019-12-19 19:31:23 +00:00
|
|
|
version = "2.0.0";
|
2018-10-27 15:22:02 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:23 +00:00
|
|
|
sha256 = "91fd35b64f1f25db59d80b8a5196ed4ffadf57a81f63ee207e34d53ec36d8f97";
|
2018-10-27 15:22:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ mock sphinx-testing ];
|
|
|
|
propagatedBuildInputs = [ sphinx blockdiag ];
|
|
|
|
|
|
|
|
# Seems to look for files in the wrong dir
|
|
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover -s tests
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-27 15:22:02 +01:00
|
|
|
description = "Sphinx blockdiag extension";
|
|
|
|
homepage = "https://github.com/blockdiag/sphinxcontrib-blockdiag";
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|