11 buildPythonPackage rec {
16 disabled = pythonOlder "3.7";
18 src = fetchFromGitHub {
22 hash = "sha256-uKrdkXpL5YBr953sRsHknYg+2/WwrZmyDf8BMA2+0tU=";
25 patches = [ ./fix_test_generate.patch ];
27 build-system = [ setuptools ];
29 dependencies = [ blockdiag ];
31 nativeCheckInputs = [ pytestCheckHook ];
33 pytestFlagsArray = [ "src/nwdiag/tests/" ];
36 # AttributeError: 'TestRstDirectives' object has no attribute 'assertRegexpMatches'
41 pythonImportsCheck = [ "nwdiag" ];
44 description = "Generate network-diagram image from spec-text file (similar to Graphviz)";
45 homepage = "http://blockdiag.com/";
46 changelog = "https://github.com/blockdiag/nwdiag/blob/${version}/CHANGES.rst";
47 license = licenses.asl20;
48 maintainers = with maintainers; [ bjornfor ];
49 mainProgram = "rackdiag";
50 platforms = platforms.unix;