1{
2 lib,
3 blockdiag,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "seqdiag";
13 version = "3.0.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "blockdiag";
20 repo = "seqdiag";
21 tag = version;
22 hash = "sha256-Dh9JMx50Nexi0q39rYr9MpkKmQRAfT7lzsNOXoTuphg=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ blockdiag ];
28
29 patches = [ ./fix_test_generate.patch ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32 enabledTestPaths = [ "src/seqdiag/tests/" ];
33
34 pythonImportsCheck = [ "seqdiag" ];
35
36 meta = with lib; {
37 description = "Generate sequence-diagram image from spec-text file (similar to Graphviz)";
38 homepage = "http://blockdiag.com/";
39 changelog = "https://github.com/blockdiag/seqdiag/blob/${version}/CHANGES.rst";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ bjornfor ];
42 mainProgram = "seqdiag";
43 platforms = platforms.unix;
44 };
45}