15 buildPythonPackage rec {
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
25 rev = "refs/tags/v${version}";
26 hash = "sha256-2jRWN2glGEr51fzny8nkqa5c2EdJG5aZPG2eTD7AISY=";
30 substituteInPlace pyproject.toml \
31 --replace 'graphviz = ">=0.13.2,<0.20.0"' 'graphviz = "*"'
35 patchShebangs autogen.sh
40 # The build-system section is missing
42 ./remove-black-requirement.patch
45 # Despite living in 'tool.poetry.dependencies',
46 # these are only used at build time to process the image resource files
54 propagatedBuildInputs = [
63 pythonImportsCheck = [
68 description = "Diagram as Code";
69 homepage = "https://diagrams.mingrammer.com/";
70 changelog = "https://github.com/mingrammer/diagrams/releases/tag/v${version}";
71 license = licenses.mit;
72 maintainers = with maintainers; [ addict3d ];