2021-01-15 22:18:51 +00:00
{ lib , stdenv , fetchurl , buildPythonPackage , isPy27 , pep8 , nose , unittest2 , docutils
2020-04-24 23:36:52 +00:00
, blockdiag
} :
buildPythonPackage rec {
pname = " s e q d i a g " ;
version = " 2 . 0 . 0 " ;
disabled = isPy27 ;
src = fetchurl {
url = " m i r r o r : / / p y p i / s / s e q d i a g / ${ pname } - ${ version } . t a r . g z " ;
sha256 = " 0 k 7 j 4 f 9 j 3 d 0 3 2 5 p i w v b v 9 0 n f h 0 w z f k 2 n 6 s 7 3 s 6 h 6 n s x m q s h c g s w k " ;
} ;
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 ;
2021-01-15 22:18:51 +00:00
meta = with lib ; {
2020-04-24 23:36:52 +00:00
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 = " h t t p : / / b l o c k d i a g . c o m / " ;
license = licenses . asl20 ;
platforms = platforms . unix ;
maintainers = with maintainers ; [ bjornfor ] ;
} ;
}