python312Packages.seqdiag: refactor

This commit is contained in:
Fabian Affolter 2024-03-29 11:50:51 +01:00
parent eeb36f32a0
commit c429ad9c8f
1 changed files with 13 additions and 14 deletions

View File

@ -2,7 +2,7 @@
, blockdiag
, buildPythonPackage
, fetchFromGitHub
, nose
, pynose
, pytestCheckHook
, pythonOlder
, setuptools
@ -11,24 +11,27 @@
buildPythonPackage rec {
pname = "seqdiag";
version = "3.0.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "blockdiag";
repo = pname;
rev = version;
repo = "seqdiag";
rev = "refs/tags/${version}";
hash = "sha256-Dh9JMx50Nexi0q39rYr9MpkKmQRAfT7lzsNOXoTuphg=";
};
propagatedBuildInputs = [
blockdiag
build-system = [
setuptools
];
dependencies = [
blockdiag
];
nativeCheckInputs = [
nose
pynose
pytestCheckHook
];
@ -36,21 +39,17 @@ buildPythonPackage rec {
"src/seqdiag/tests/"
];
disabledTests = [
# UnicodeEncodeError: 'latin-1' codec can't encode...
"test_setup_inline_svg_is_true_with_multibytes"
];
pythonImportsCheck = [
"seqdiag"
];
meta = with lib; {
description = "Generate sequence-diagram image from spec-text file (similar to Graphviz)";
mainProgram = "seqdiag";
homepage = "http://blockdiag.com/";
changelog = "https://github.com/blockdiag/seqdiag/blob/${version}/CHANGES.rst";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
mainProgram = "seqdiag";
platforms = platforms.unix;
};
}