1{
2 lib,
3 blockdiag,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pynose,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "actdiag";
14 version = "3.0.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "blockdiag";
21 repo = "actdiag";
22 rev = "refs/tags/${version}";
23 hash = "sha256-WmprkHOgvlsOIg8H77P7fzEqxGnj6xaL7Df7urRkg3o=";
24 };
25
26 build-system = [ setuptools ];
27
28 propagatedBuildInputs = [ blockdiag ];
29
30 nativeCheckInputs = [
31 pynose
32 pytestCheckHook
33 ];
34
35 pytestFlagsArray = [ "src/actdiag/tests/" ];
36
37 disabledTests = [
38 # AttributeError: 'TestRstDirectives' object has no attribute 'assertRegexpMatches'
39 "svg"
40 "noviewbox"
41 ];
42
43 pythonImportsCheck = [ "actdiag" ];
44
45 meta = with lib; {
46 description = "Generate activity-diagram image from spec-text file (similar to Graphviz)";
47 homepage = "http://blockdiag.com/";
48 changelog = "https://github.com/blockdiag/actdiag/blob/${version}/CHANGES.rst";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ bjornfor ];
51 mainProgram = "actdiag";
52 platforms = platforms.unix;
53 };
54}