{ lib, buildPythonPackage, fetchFromGitHub, diff-cover, graphviz, hatchling, hatch-vcs, packaging, pytest-mock, pytestCheckHook, pip, virtualenv, }: buildPythonPackage rec { pname = "pipdeptree"; version = "2.30.0"; pyproject = true; src = fetchFromGitHub { owner = "tox-dev"; repo = "pipdeptree"; tag = version; hash = "sha256-nDCd4Bk5P65+fnFM/kC3cbfPanj5P35/bta86/E65i0="; }; build-system = [ hatchling hatch-vcs ]; dependencies = [ pip packaging ]; optional-dependencies = { graphviz = [ graphviz ]; }; nativeCheckInputs = [ diff-cover pytest-mock pytestCheckHook virtualenv ] ++ lib.concatAttrValues optional-dependencies; pythonImportsCheck = [ "pipdeptree" ]; disabledTests = [ # Don't run console tests "test_console" ]; meta = { description = "Command line utility to show dependency tree of packages"; homepage = "https://github.com/tox-dev/pipdeptree"; changelog = "https://github.com/tox-dev/pipdeptree/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ charlesbaynham mdaniels5757 ]; mainProgram = "pipdeptree"; }; }