depot/third_party/nixpkgs/pkgs/development/python-modules/paypal-checkout-serversdk/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

51 lines
987 B
Nix

{
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 ];
};
}