at 24.11-pre 1.2 kB view raw
1{ 2 lib, 3 blockdiag, 4 fetchFromGitHub, 5 buildPythonPackage, 6 pynose, 7 pytestCheckHook, 8 setuptools, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "nwdiag"; 14 version = "3.0.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "blockdiag"; 21 repo = "nwdiag"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-uKrdkXpL5YBr953sRsHknYg+2/WwrZmyDf8BMA2+0tU="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ blockdiag ]; 29 30 nativeCheckInputs = [ 31 pynose 32 pytestCheckHook 33 ]; 34 35 pytestFlagsArray = [ "src/nwdiag/tests/" ]; 36 37 disabledTests = [ 38 # AttributeError: 'TestRstDirectives' object has no attribute 'assertRegexpMatches' 39 "svg" 40 "noviewbox" 41 ]; 42 43 pythonImportsCheck = [ "nwdiag" ]; 44 45 meta = with lib; { 46 description = "Generate network-diagram image from spec-text file (similar to Graphviz)"; 47 homepage = "http://blockdiag.com/"; 48 changelog = "https://github.com/blockdiag/nwdiag/blob/${version}/CHANGES.rst"; 49 license = licenses.asl20; 50 maintainers = with maintainers; [ bjornfor ]; 51 mainProgram = "rackdiag"; 52 platforms = platforms.unix; 53 }; 54}