1{
2 lib,
3 blockdiag,
4 buildPythonPackage,
5 fetchPypi,
6 nwdiag,
7 pythonOlder,
8 sphinx,
9}:
10
11buildPythonPackage rec {
12 pname = "sphinxcontrib-nwdiag";
13 version = "2.0.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-bula1DutRv6NwfZRhciZfLHRZmXu42p+qvbeExN/+Fk=";
21 };
22
23 propagatedBuildInputs = [
24 blockdiag
25 nwdiag
26 sphinx
27 ];
28
29 pythonImportsCheck = [ "sphinxcontrib.nwdiag" ];
30
31 pythonNamespaces = [ "sphinxcontrib" ];
32
33 meta = with lib; {
34 description = "Sphinx nwdiag extension";
35 homepage = "https://github.com/blockdiag/sphinxcontrib-nwdiag";
36 license = licenses.bsd2;
37 maintainers = [ ];
38 };
39}