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