nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 68 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 diff-cover, 6 graphviz, 7 hatchling, 8 hatch-vcs, 9 packaging, 10 pytest-mock, 11 pytestCheckHook, 12 pip, 13 virtualenv, 14}: 15 16buildPythonPackage rec { 17 pname = "pipdeptree"; 18 version = "2.30.0"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "tox-dev"; 23 repo = "pipdeptree"; 24 tag = version; 25 hash = "sha256-nDCd4Bk5P65+fnFM/kC3cbfPanj5P35/bta86/E65i0="; 26 }; 27 28 build-system = [ 29 hatchling 30 hatch-vcs 31 ]; 32 33 dependencies = [ 34 pip 35 packaging 36 ]; 37 38 optional-dependencies = { 39 graphviz = [ graphviz ]; 40 }; 41 42 nativeCheckInputs = [ 43 diff-cover 44 pytest-mock 45 pytestCheckHook 46 virtualenv 47 ] 48 ++ lib.concatAttrValues optional-dependencies; 49 50 pythonImportsCheck = [ "pipdeptree" ]; 51 52 disabledTests = [ 53 # Don't run console tests 54 "test_console" 55 ]; 56 57 meta = { 58 description = "Command line utility to show dependency tree of packages"; 59 homepage = "https://github.com/tox-dev/pipdeptree"; 60 changelog = "https://github.com/tox-dev/pipdeptree/releases/tag/${src.tag}"; 61 license = lib.licenses.mit; 62 maintainers = with lib.maintainers; [ 63 charlesbaynham 64 mdaniels5757 65 ]; 66 mainProgram = "pipdeptree"; 67 }; 68}