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