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