at 23.11-beta 1.0 kB view raw
1{ lib 2, blockdiag 3, fetchFromGitHub 4, buildPythonPackage 5, nose 6, pytestCheckHook 7, setuptools 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "nwdiag"; 13 version = "3.0.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "blockdiag"; 20 repo = pname; 21 rev = version; 22 hash = "sha256-uKrdkXpL5YBr953sRsHknYg+2/WwrZmyDf8BMA2+0tU="; 23 }; 24 25 propagatedBuildInputs = [ 26 blockdiag 27 setuptools 28 ]; 29 30 nativeCheckInputs = [ 31 nose 32 pytestCheckHook 33 ]; 34 35 pytestFlagsArray = [ 36 "src/nwdiag/tests/" 37 ]; 38 39 disabledTests = [ 40 # UnicodeEncodeError: 'latin-1' codec can't encode... 41 "test_setup_inline_svg_is_true_with_multibytes" 42 ]; 43 44 pythonImportsCheck = [ 45 "nwdiag" 46 ]; 47 48 meta = with lib; { 49 description = "Generate network-diagram image from spec-text file (similar to Graphviz)"; 50 homepage = "http://blockdiag.com/"; 51 license = licenses.asl20; 52 platforms = platforms.unix; 53 maintainers = with maintainers; [ bjornfor ]; 54 }; 55}