9 python3Packages.buildPythonPackage rec {
10 pname = "diagrams-as-code";
14 src = fetchFromGitHub {
15 owner = "dmytrostriletskyi";
16 repo = "diagrams-as-code";
17 rev = "refs/tags/v${version}";
18 hash = "sha256-cd602eQvNCUQuCdn/RpcfURcDHjXLZ0gAG+SObB++Q0=";
21 build-system = [ python3Packages.setuptools ];
23 dependencies = with python3Packages; [
35 pythonImportsCheck = [ "diagrams_as_code" ];
37 doCheck = false; # no tests
40 simple = runCommand "${pname}-test" { } ''
41 # giving full path to diagrams-as-code causes
42 # a bad path concatenation
43 cp ${diagrams-as-code.src}/examples/all-fields.yaml .
45 ${lib.getExe diagrams-as-code} all-fields.yaml
47 cp web-services-architecture-aws.jpg $out
52 description = "Declarative configurations using YAML for drawing cloud system architectures";
53 homepage = "https://github.com/dmytrostriletskyi/diagrams-as-code";
54 license = lib.licenses.mit;
55 maintainers = with lib.maintainers; [ sigmanificient ];
56 mainProgram = "diagrams-as-code";