1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # propagates
7 paypalhttp,
8
9 # tersts
10 pytestCheckHook,
11 responses,
12}:
13
14buildPythonPackage rec {
15 pname = "paypal-checkout-serversdk";
16 version = "1.0.1";
17 format = "setuptools";
18
19 src = fetchFromGitHub {
20 owner = "paypal";
21 repo = "Checkout-Python-SDK";
22 tag = version;
23 hash = "sha256-04ojNJeqVMdhnGpeCD+wzgKGLI22tVvrMW3gF/SH7KU=";
24 };
25
26 postPatch = ''
27 # outdated python2 samples
28 rm -rf sample
29 '';
30
31 propagatedBuildInputs = [ paypalhttp ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 responses
36 ];
37
38 disabledTests = [
39 # network tests
40 "testOrdersPatchTest"
41 "testOrdersCreateTest"
42 "testOrderGetRequestTest"
43 ];
44
45 meta = with lib; {
46 changelog = "https://github.com/paypal/Checkout-Python-SDK/releases/tag/${version}";
47 description = "Python SDK for Checkout RESTful APIs";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ hexa ];
50 };
51}