python311Packages.paypalrestsdk: refactor

- Use PEP517 builder and lingo
- Add imports check
This commit is contained in:
Martin Weinelt 2024-03-15 21:30:43 +01:00
parent c28c053ccf
commit caa1206b99
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,16 +1,40 @@
{ buildPythonPackage, fetchPypi
, requests, six, pyopenssl }:
{ buildPythonPackage
, fetchPypi
# build-system
, setuptools
# dependencies
, pyopenssl
, requests
, six
}:
buildPythonPackage rec {
pname = "paypalrestsdk";
version = "1.13.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-kZUfNtsw1oW5ceFASYSRo1bPHfjv9xZWYDrKTtcs81o=";
};
propagatedBuildInputs = [ requests six pyopenssl ];
build-system = [
setuptools
];
dependencies = [
pyopenssl
requests
six
];
doCheck = false; # no tests
pythonImportsCheck = [
"paypalrestsdk"
];
meta = {
homepage = "https://developer.paypal.com/";