Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 63 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, buildPythonPackage, fetchFromGitHub, graphviz, imagemagick, inkscape, jinja2, hatchling, pytestCheckHook, round,}:
buildPythonPackage rec { pname = "diagrams"; version = "0.25.1"; pyproject = true;
src = fetchFromGitHub { owner = "mingrammer"; repo = "diagrams"; tag = "v${version}"; hash = "sha256-uDBmQSEn9LMT2CbR3VDhxW1ec4udXN5wZ1H1+RX/K0U="; };
patches = [ ./remove-black-requirement.patch ];
pythonRemoveDeps = [ "pre-commit" ];
pythonRelaxDeps = [ "graphviz" ];
preConfigure = '' patchShebangs autogen.sh ./autogen.sh '';
build-system = [ hatchling ];
# Despite living in 'tool.poetry.dependencies', # these are only used at build time to process the image resource files nativeBuildInputs = [ inkscape imagemagick jinja2 round ];
dependencies = [ graphviz ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "diagrams" ];
meta = { description = "Diagram as Code"; homepage = "https://diagrams.mingrammer.com/"; changelog = "https://github.com/mingrammer/diagrams/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ addict3d ]; };}