1{ stdenv, fetchurl, buildPythonPackage, pep8, nose, unittest2, docutils
2, pillow, webcolors, funcparserlib
3}:
4
5buildPythonPackage rec {
6 pname = "blockdiag";
7 version = "1.5.3";
8
9 src = fetchurl {
10 url = "https://bitbucket.org/blockdiag/blockdiag/get/${version}.tar.bz2";
11 sha256 = "0r0qbmv0ijnqidsgm2rqs162y9aixmnkmzgnzgk52hiy7ydm4k8f";
12 };
13
14 buildInputs = [ pep8 nose unittest2 docutils ];
15
16 propagatedBuildInputs = [ pillow webcolors funcparserlib ];
17
18 # One test fails:
19 # ...
20 # FAIL: test_auto_font_detection (blockdiag.tests.test_boot_params.TestBootParams)
21 doCheck = false;
22
23 meta = with stdenv.lib; {
24 description = "Generate block-diagram image from spec-text file (similar to Graphviz)";
25 homepage = http://blockdiag.com/;
26 license = licenses.asl20;
27 platforms = platforms.unix;
28 maintainers = with maintainers; [ bjornfor ];
29 };
30}