nixpkgs/pkgs/development/python-modules/seqdiag/default.nix

32 lines
912 B
Nix
Raw Normal View History

{ lib, fetchurl, buildPythonPackage, isPy27, pep8, nose, unittest2, docutils
, blockdiag
}:
buildPythonPackage rec {
pname = "seqdiag";
2020-02-04 18:43:32 +00:00
version = "2.0.0";
disabled = isPy27;
src = fetchurl {
url = "mirror://pypi/s/seqdiag/${pname}-${version}.tar.gz";
2020-02-04 18:43:32 +00:00
sha256 = "0k7j4f9j3d0325piwvbv90nfh0wzfk2n6s73s6h6nsxmqshcgswk";
};
buildInputs = [ pep8 nose unittest2 docutils ];
propagatedBuildInputs = [ blockdiag ];
# Tests fail:
# ...
# ERROR: Failure: OSError ([Errno 2] No such file or directory: '/tmp/nix-build-python2.7-seqdiag-0.9.0.drv-0/seqdiag-0.9.0/src/seqdiag/tests/diagrams/')
doCheck = false;
meta = with lib; {
description = "Generate sequence-diagram image from spec-text file (similar to Graphviz)";
homepage = "http://blockdiag.com/";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
}