From d95fea4f03bb62306a157fa5677db97d3a36650c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 31 Mar 2025 22:25:20 +0000 Subject: [PATCH] python312Packages.bindep: 2.12.0 -> 2.13.0 --- .../python-modules/bindep/default.nix | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/bindep/default.nix b/pkgs/development/python-modules/bindep/default.nix index 99eca088b2ab..b1f9decb95e2 100644 --- a/pkgs/development/python-modules/bindep/default.nix +++ b/pkgs/development/python-modules/bindep/default.nix @@ -3,27 +3,29 @@ buildPythonPackage, distro, fetchPypi, + fixtures, + libredirect, packaging, parsley, pbr, - setuptools, + pytestCheckHook, + testtools, }: buildPythonPackage rec { pname = "bindep"; - version = "2.12.0"; + version = "2.13.0"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-wGtR5tC6OWWq2PPCXwpXS+D4AboHyxp4SV2olUZ952A="; + hash = "sha256-33VkdT5YMDO7ETM4FQ13JUAUW00YmkgB7FaiW17eUFA="; }; env.PBR_VERSION = version; build-system = [ pbr - setuptools ]; dependencies = [ @@ -33,8 +35,21 @@ buildPythonPackage rec { distro ]; - # Checks moved to 'passthru.tests' to workaround infinite recursion - doCheck = false; + nativeCheckInputs = [ + fixtures + libredirect.hook + pytestCheckHook + testtools + ]; + + preCheck = '' + echo "ID=nixos + " > os-release + export NIX_REDIRECTS=/etc/os-release=$(realpath os-release) + export PATH=$PATH:$out/bin + ''; + + pytestFlagsArray = [ "-s" ]; pythonImportsCheck = [ "bindep" ];