mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-11 22:54:17 +00:00
python310Packages.paypal-checkout-serversdk: init at 1.0.
This commit is contained in:
parent
07de4d2914
commit
5e524c5150
@ -0,0 +1,52 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# propagates
|
||||
, paypalhttp
|
||||
|
||||
# tersts
|
||||
, pytestCheckHook
|
||||
, responses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "paypal-checkout-serversdk";
|
||||
version = "1.0.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "paypal";
|
||||
repo = "Checkout-Python-SDK";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-04ojNJeqVMdhnGpeCD+wzgKGLI22tVvrMW3gF/SH7KU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# outdated python2 samples
|
||||
rm -rf sample
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
paypalhttp
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
responses
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# network tests
|
||||
"testOrdersPatchTest"
|
||||
"testOrdersCreateTest"
|
||||
"testOrderGetRequestTest"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/paypal/Checkout-Python-SDK/releases/tag/${version}";
|
||||
description = "Python SDK for Checkout RESTful APIs";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
@ -7234,6 +7234,8 @@ self: super: with self; {
|
||||
|
||||
paver = callPackage ../development/python-modules/paver { };
|
||||
|
||||
paypal-checkout-serversdk = callPackage ../development/python-modules/paypal-checkout-serversdk { };
|
||||
|
||||
paypalhttp = callPackage ../development/python-modules/paypalhttp { };
|
||||
|
||||
paypalrestsdk = callPackage ../development/python-modules/paypalrestsdk { };
|
||||
|
Loading…
Reference in New Issue
Block a user