16 buildPythonPackage rec {
21 disabled = pythonOlder "3.7";
23 src = fetchFromGitHub {
26 rev = "refs/tags/v${version}";
27 hash = "sha256-2jRWN2glGEr51fzny8nkqa5c2EdJG5aZPG2eTD7AISY=";
31 substituteInPlace pyproject.toml \
32 --replace 'graphviz = ">=0.13.2,<0.20.0"' 'graphviz = "*"'
36 patchShebangs autogen.sh
41 # The build-system section is missing
43 ./remove-black-requirement.patch
46 # Despite living in 'tool.poetry.dependencies',
47 # these are only used at build time to process the image resource files
56 propagatedBuildInputs = [
61 nativeCheckInputs = [ pytestCheckHook ];
63 pythonImportsCheck = [ "diagrams" ];
66 description = "Diagram as Code";
67 homepage = "https://diagrams.mingrammer.com/";
68 changelog = "https://github.com/mingrammer/diagrams/releases/tag/v${version}";
69 license = licenses.mit;
70 maintainers = with maintainers; [ addict3d ];