python311Packages.paypalrestsdk: refactor
- Use PEP517 builder and lingo - Add imports check
This commit is contained in:
parent
c28c053ccf
commit
caa1206b99
1 changed files with 27 additions and 3 deletions
|
@ -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/";
|
||||
|
|
Loading…
Reference in a new issue