aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/blockdiag/default.nix
blob: ceaa31874ecbc1ed6106d68d120fb92de38c1b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchurl, buildPythonPackage, pep8, nose, unittest2, docutils
, pillow, webcolors, funcparserlib
}:

buildPythonPackage rec {
  pname = "blockdiag";
  version = "1.5.3";

  src = fetchurl {
    url = "https://bitbucket.org/blockdiag/blockdiag/get/${version}.tar.bz2";
    sha256 = "0r0qbmv0ijnqidsgm2rqs162y9aixmnkmzgnzgk52hiy7ydm4k8f";
  };

  buildInputs = [ pep8 nose unittest2 docutils ];

  propagatedBuildInputs = [ pillow webcolors funcparserlib ];

  # One test fails:
  #   ...
  #   FAIL: test_auto_font_detection (blockdiag.tests.test_boot_params.TestBootParams)
  doCheck = false;

  meta = with stdenv.lib; {
    description = "Generate block-diagram image from spec-text file (similar to Graphviz)";
    homepage = "http://blockdiag.com/";
    license = licenses.asl20;
    platforms = platforms.unix;
    maintainers = with maintainers; [ bjornfor ];
  };
}