python3Packages.actdiag: 2.0.0 -> 3.0.0

This commit is contained in:
Fabian Affolter 2021-12-26 18:30:22 +01:00 committed by Jonathan Ringer
parent 7ea63e17c2
commit 78cd777c93

View file

@ -1,18 +1,44 @@
{ lib, buildPythonPackage, fetchPypi
, nose, docutils, blockdiag, reportlab }:
{ lib
, blockdiag
, buildPythonPackage
, fetchFromGitHub
, nose
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "actdiag";
version = "2.0.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0g51v9dmdq18z33v332f1f0cmb3hqgaga5minj0mc2sglark1s7h";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "blockdiag";
repo = pname;
rev = version;
sha256 = "sha256-pTWunoc6T1m+4SOe0ob0ac4ZwwXsYNZwkdwVtlMZrIo=";
};
propagatedBuildInputs = [ blockdiag docutils ];
propagatedBuildInputs = [
blockdiag
setuptools
];
checkInputs = [ nose reportlab ];
checkInputs = [
nose
pytestCheckHook
];
pytestFlagsArray = [
"src/actdiag/tests/"
];
pythonImportsCheck = [
"actdiag"
];
meta = with lib; {
description = "Generate activity-diagram image from spec-text file (similar to Graphviz)";