at 23.05-pre 1.0 kB view raw
1{ lib 2, blockdiag 3, buildPythonPackage 4, fetchFromGitHub 5, nose 6, pytestCheckHook 7, pythonOlder 8, setuptools 9}: 10 11buildPythonPackage rec { 12 pname = "seqdiag"; 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 sha256 = "sha256-Dh9JMx50Nexi0q39rYr9MpkKmQRAfT7lzsNOXoTuphg="; 23 }; 24 25 propagatedBuildInputs = [ 26 blockdiag 27 setuptools 28 ]; 29 30 checkInputs = [ 31 nose 32 pytestCheckHook 33 ]; 34 35 pytestFlagsArray = [ 36 "src/seqdiag/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 "seqdiag" 46 ]; 47 48 meta = with lib; { 49 description = "Generate sequence-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}