From 0c45c1a09b5782ba4dfefa69eac4e0698e22fb9e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 16 Sep 2022 19:18:13 +0200 Subject: [PATCH] python3Packages.pipdeptree: 2.2.1 -> 2.3.1 --- .../python-modules/pipdeptree/default.nix | 36 ++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pipdeptree/default.nix b/pkgs/development/python-modules/pipdeptree/default.nix index b6dbfe53d8d9..945093dffd0b 100644 --- a/pkgs/development/python-modules/pipdeptree/default.nix +++ b/pkgs/development/python-modules/pipdeptree/default.nix @@ -2,31 +2,51 @@ , buildPythonPackage , fetchFromGitHub , pythonOlder -, tox +, diff-cover +, graphviz +, hatchling +, hatch-vcs +, pytest-mock +, pytestCheckHook , pip +, virtualenv }: buildPythonPackage rec { pname = "pipdeptree"; - version = "2.2.1"; + version = "2.3.1"; format = "pyproject"; - disabled = pythonOlder "3.4"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "naiquevin"; repo = "pipdeptree"; - rev = "${version}"; - sha256 = "sha256-CL0li/79qptOtOGLwder5s0+6zv7+PUnl+bD6p+XBtA="; + rev = "refs/tags/${version}"; + hash = "sha256-X3SVQzBg+QjBSewRsfiyLqIea0duhe1nUf8ancWLvcI="; }; - propagatedBuildInputs = [ + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + hatchling + hatch-vcs + ]; + + propagatedBuildInput = [ pip ]; + passthru.optional-dependencies = { + graphviz = [ graphviz ]; + }; + checkInputs = [ - tox - ]; + diff-cover + pytest-mock + pytestCheckHook + virtualenv + ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); pythonImportsCheck = [ "pipdeptree"