python312Packages.actdiag: refactor

This commit is contained in:
Fabian Affolter 2024-03-29 11:56:42 +01:00
parent c429ad9c8f
commit d425678397

View file

@ -2,7 +2,7 @@
, blockdiag
, buildPythonPackage
, fetchFromGitHub
, nose
, pynose
, pytestCheckHook
, pythonOlder
, setuptools
@ -11,24 +11,27 @@
buildPythonPackage rec {
pname = "actdiag";
version = "3.0.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "blockdiag";
repo = pname;
rev = version;
repo = "actdiag";
rev = "refs/tags/${version}";
hash = "sha256-WmprkHOgvlsOIg8H77P7fzEqxGnj6xaL7Df7urRkg3o=";
};
propagatedBuildInputs = [
blockdiag
build-system = [
setuptools
];
propagatedBuildInputs = [
blockdiag
];
nativeCheckInputs = [
nose
pynose
pytestCheckHook
];
@ -36,16 +39,23 @@ buildPythonPackage rec {
"src/actdiag/tests/"
];
disabledTests = [
# AttributeError: 'TestRstDirectives' object has no attribute 'assertRegexpMatches'
"svg"
"noviewbox"
];
pythonImportsCheck = [
"actdiag"
];
meta = with lib; {
description = "Generate activity-diagram image from spec-text file (similar to Graphviz)";
mainProgram = "actdiag";
homepage = "http://blockdiag.com/";
changelog = "https://github.com/blockdiag/actdiag/blob/${version}/CHANGES.rst";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
mainProgram = "actdiag";
platforms = platforms.unix;
};
}