2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
blockdiag,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "seqdiag";
|
2021-12-30 13:39:12 +00:00
|
|
|
version = "3.0.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "blockdiag";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "seqdiag";
|
|
|
|
rev = "refs/tags/${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-Dh9JMx50Nexi0q39rYr9MpkKmQRAfT7lzsNOXoTuphg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2021-12-30 13:39:12 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [ blockdiag ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
patches = [ ./fix_test_generate.patch ];
|
2021-12-30 13:39:12 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "src/seqdiag/tests/" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "seqdiag" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generate sequence-diagram image from spec-text file (similar to Graphviz)";
|
|
|
|
homepage = "http://blockdiag.com/";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/blockdiag/seqdiag/blob/${version}/CHANGES.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "seqdiag";
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|