From d23a829310f17c93d879f139a7a3dd31f9c050e4 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Fri, 15 Nov 2024 18:35:45 +0800 Subject: [PATCH] python3Packages.mercadopago: fix build (cherry picked from commit 9d271656f5b9d9b98080c1b0f77654de332fb858) --- .../python-modules/mercadopago/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/mercadopago/default.nix b/pkgs/development/python-modules/mercadopago/default.nix index 4f5ba6fe2c44..930c067086a3 100644 --- a/pkgs/development/python-modules/mercadopago/default.nix +++ b/pkgs/development/python-modules/mercadopago/default.nix @@ -4,12 +4,13 @@ fetchFromGitHub, pythonOlder, requests, + setuptools, }: buildPythonPackage rec { pname = "mercadopago"; version = "2.2.3"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -20,18 +21,24 @@ buildPythonPackage rec { hash = "sha256-u4/e/shfTyrucf+uj5nqAkeugX9JZjXBrNtoOkpff8c="; }; - propagatedBuildInputs = [ requests ]; + build-system = [ + setuptools + ]; + + dependencies = [ + requests + ]; # require internet doCheck = false; pythonImportsCheck = [ "mercadopago" ]; - meta = with lib; { + meta = { description = "This library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments"; homepage = "https://www.mercadopago.com"; changelog = "https://github.com/mercadopago/sdk-python/releases/tag/${version}"; - license = licenses.mit; - maintainers = with maintainers; [ derdennisop ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ derdennisop ]; }; }