2020-02-17 03:09:03 +00:00
{ stdenv , fetchurl , buildPythonPackage , isPy27 , pep8 , nose , unittest2 , docutils
2017-10-29 14:45:15 +00:00
, blockdiag
} :
buildPythonPackage rec {
2017-11-09 11:26:09 +00:00
pname = " s e q d i a g " ;
2020-02-04 18:43:32 +00:00
version = " 2 . 0 . 0 " ;
2020-02-17 03:09:03 +00:00
disabled = isPy27 ;
2017-10-29 14:45:15 +00:00
src = fetchurl {
2019-08-15 13:41:18 +01:00
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 " ;
2020-02-04 18:43:32 +00:00
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 " ;
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 ) " ;
2020-04-01 02:11:51 +01:00
homepage = " h t t p : / / b l o c k d i a g . c o m / " ;
2017-10-29 14:45:15 +00:00
license = licenses . asl20 ;
2019-02-17 13:00:33 +00:00
platforms = platforms . unix ;
2017-10-29 14:45:15 +00:00
maintainers = with maintainers ; [ bjornfor ] ;
} ;
}