depot/third_party/nixpkgs/pkgs/development/python-modules/seqdiag/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

31 lines
912 B
Nix

{ lib, fetchurl, buildPythonPackage, isPy27, pep8, nose, unittest2, docutils
, blockdiag
}:
buildPythonPackage rec {
pname = "seqdiag";
version = "2.0.0";
disabled = isPy27;
src = fetchurl {
url = "mirror://pypi/s/seqdiag/${pname}-${version}.tar.gz";
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 ];
};
}