From 01311de0f63d8791aaaf61b26d4bfef94742e88e Mon Sep 17 00:00:00 2001 From: Anthony ROUSSEL Date: Fri, 30 Aug 2024 22:41:39 +0200 Subject: [PATCH] python311Packages.bindep: enable `pyproject = true` --- .../python-modules/bindep/default.nix | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/bindep/default.nix b/pkgs/development/python-modules/bindep/default.nix index 8153354843a4..6d8c2d0a5a22 100644 --- a/pkgs/development/python-modules/bindep/default.nix +++ b/pkgs/development/python-modules/bindep/default.nix @@ -1,47 +1,48 @@ { lib, - fetchPypi, buildPythonPackage, distro, - pbr, - setuptools, + fetchPypi, packaging, parsley, + pbr, + setuptools, }: + buildPythonPackage rec { pname = "bindep"; version = "2.11.0"; - format = "pyproject"; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-rLLyWbzh/RUIhzR5YJu95bmq5Qg3hHamjWtqGQAufi8="; }; - buildInputs = [ + env.PBR_VERSION = version; + + build-system = [ distro pbr setuptools ]; - propagatedBuildInputs = [ + dependencies = [ parsley pbr packaging distro ]; - patchPhase = '' - # Setting the pbr version will skip any version checking logic - # This is required because pbr thinks it gets it's own version from git tags - # See https://docs.openstack.org/pbr/latest/user/packagers.html - export PBR_VERSION=5.11.1 - ''; + # Checks moved to 'passthru.tests' to workaround infinite recursion + doCheck = false; + + pythonImportsCheck = [ "bindep" ]; meta = with lib; { description = "Bindep is a tool for checking the presence of binary packages needed to use an application / library"; homepage = "https://docs.opendev.org/opendev/bindep/latest/"; license = licenses.asl20; - maintainers = with maintainers; [ melkor333 ]; + maintainers = teams.openstack.members ++ (with maintainers; [ melkor333 ]); }; }