2017-10-29 14:45:15 +00:00
{ stdenv , fetchurl , buildPythonPackage , pep8 , nose , unittest2 , docutils
, blockdiag
} :
buildPythonPackage rec {
2017-11-09 11:26:09 +00:00
pname = " s e q d i a g " ;
2018-07-26 12:10:15 +01:00
version = " 0 . 9 . 6 " ;
2017-11-09 11:26:09 +00:00
name = pname + " - " + version ;
2017-10-29 14:45:15 +00:00
src = fetchurl {
url = " m i r r o r : / / p y p i / s / s e q d i a g / ${ name } . t a r . g z " ;
2018-07-26 12:10:15 +01:00
sha256 = " 7 8 1 0 4 e 7 6 4 4 c 1 a 4 d 3 a 5 c a c b 6 8 d e 6 a 7 f 7 2 0 7 9 3 f 0 8 d d 7 8 5 6 1 e f 0 e 9 e 8 0 b e d 6 3 7 0 2 b f " ;
2017-10-29 14:45:15 +00:00
} ;
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 stdenv . lib ; {
description = " G e n e r a t e s e q u e n c e - d i a g r a m i m a g e f r o m s p e c - t e x t f i l e ( s i m i l a r t o G r a p h v i z ) " ;
homepage = http://blockdiag.com/ ;
license = licenses . asl20 ;
platforms = platforms . linux ;
maintainers = with maintainers ; [ bjornfor ] ;
} ;
}