Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages.blockdiag: 1.5.3 -> 2.0.1 #105307

Merged
merged 3 commits into from Nov 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 7 additions & 15 deletions pkgs/development/python-modules/actdiag/default.nix
@@ -1,32 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch
, pep8, nose, unittest2, docutils, blockdiag, reportlab }:
{ stdenv, buildPythonPackage, fetchPypi
, nose, docutils, blockdiag, reportlab }:

buildPythonPackage rec {
pname = "actdiag";
version = "0.5.4";
version = "2.0.0";

src = fetchPypi {
inherit pname version;
sha256 = "983071777d9941093aaef3be1f67c198a8ac8d2bba264cdd1f337ca415ab46af";
sha256 = "0g51v9dmdq18z33v332f1f0cmb3hqgaga5minj0mc2sglark1s7h";
};

patches = fetchpatch {
name = "drop_test_pep8.py.patch";
url = "https://bitbucket.org/blockdiag/actdiag/commits/c1f2ed5947a1e93291f5860e4e30cee098bd635d/raw";
sha256 = "1zxzwb0fvwlc8xgs45fx65341sjhb3h6l2p6rdj6i127vg1hsxb4";
};

buildInputs = [ pep8 nose unittest2 docutils ];

propagatedBuildInputs = [ blockdiag ];
propagatedBuildInputs = [ blockdiag docutils ];

checkInputs = [ reportlab ];
checkInputs = [ nose reportlab ];

meta = with stdenv.lib; {
description = "Generate activity-diagram image from spec-text file (similar to Graphviz)";
homepage = "http://blockdiag.com/";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
maintainers = with maintainers; [ bjornfor SuperSandro2000 ];
};
}
24 changes: 11 additions & 13 deletions pkgs/development/python-modules/blockdiag/default.nix
@@ -1,30 +1,28 @@
{ stdenv, fetchurl, buildPythonPackage, pep8, nose, unittest2, docutils
, pillow, webcolors, funcparserlib
{ stdenv, buildPythonPackage, fetchFromGitHub
, setuptools, funcparserlib, pillow, webcolors, reportlab, docutils
}:

buildPythonPackage rec {
pname = "blockdiag";
version = "1.5.3";
version = "2.0.1";

src = fetchurl {
url = "https://bitbucket.org/blockdiag/blockdiag/get/${version}.tar.bz2";
sha256 = "0r0qbmv0ijnqidsgm2rqs162y9aixmnkmzgnzgk52hiy7ydm4k8f";
src = fetchFromGitHub {
owner = "blockdiag";
repo = "blockdiag";
rev = version;
sha256 = "1cvcl66kf4wdh2n4fdk37zk59lp58wd2fhf84n7pbn0lilyksk5x";
};

buildInputs = [ pep8 nose unittest2 docutils ];
propagatedBuildInputs = [ setuptools funcparserlib pillow webcolors reportlab docutils ];

propagatedBuildInputs = [ pillow webcolors funcparserlib ];

# One test fails:
# ...
# FAIL: test_auto_font_detection (blockdiag.tests.test_boot_params.TestBootParams)
# require network and fail
doCheck = false;

meta = with stdenv.lib; {
description = "Generate block-diagram image from spec-text file (similar to Graphviz)";
homepage = "http://blockdiag.com/";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
maintainers = with maintainers; [ bjornfor SuperSandro2000 ];
};
}
2 changes: 1 addition & 1 deletion pkgs/top-level/python-packages.nix
Expand Up @@ -910,7 +910,7 @@ in {

blockdiag = callPackage ../development/python-modules/blockdiag { };

blockdiagcontrib-cisco = callPackage ../development/python-modules/blockdiagcontrib-cisco { };
blockdiagcontrib-cisco = throw "blockdiagcontrib-cisco is not compatible with blockdiag 2.0.0 and has been removed."; # Added 2020-11-29

block-io = callPackage ../development/python-modules/block-io { };

Expand Down