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