python311Packages.paypalrestsdk: refactor

This commit is contained in:
Fabian Affolter 2024-03-17 08:33:00 +01:00 committed by GitHub
parent ab2b42656e
commit 35f6a4a2e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 10 deletions

View File

@ -1,11 +1,9 @@
{ buildPythonPackage
{ lib
, buildPythonPackage
, fetchPypi
# build-system
, setuptools
# dependencies
, pyopenssl
, pythonOlder
, requests
, six
}:
@ -15,9 +13,11 @@ buildPythonPackage rec {
version = "1.13.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-2sI2SSqawSYKdgAUouVqs4sJ2BQylbXollRTWbYf7dY=";
hash = "sha256-2sI2SSqawSYKdgAUouVqs4sJ2BQylbXollRTWbYf7dY=";
};
build-system = [
@ -30,15 +30,21 @@ buildPythonPackage rec {
six
];
doCheck = false; # no tests
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"paypalrestsdk"
];
meta = {
homepage = "https://developer.paypal.com/";
meta = with lib; {
description = "Python APIs to create, process and manage payment";
license = "PayPal SDK License";
homepage = "https://github.com/paypal/PayPal-Python-SDK";
changelog = "https://github.com/paypal/PayPal-Python-SDK/blob/master/CHANGELOG.md";
license = {
fullName = "PayPal SDK License";
url = "https://github.com/paypal/PayPal-Python-SDK/blob/master/LICENSE";
};
maintainers = with maintainers; [ ];
};
}