Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / paypal-checkout-serversdk / default.nix
blob711056008c9b5548f311cccbf61fcc7ef5d45e48
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
5 # propagates
6 , paypalhttp
8 # tersts
9 , pytestCheckHook
10 , responses
13 buildPythonPackage rec {
14   pname = "paypal-checkout-serversdk";
15   version = "1.0.1";
16   format = "setuptools";
18   src = fetchFromGitHub {
19     owner = "paypal";
20     repo = "Checkout-Python-SDK";
21     rev = "refs/tags/${version}";
22     hash = "sha256-04ojNJeqVMdhnGpeCD+wzgKGLI22tVvrMW3gF/SH7KU=";
23   };
25   postPatch = ''
26     # outdated python2 samples
27     rm -rf sample
28   '';
30   propagatedBuildInputs = [
31     paypalhttp
32   ];
34   nativeCheckInputs = [
35     pytestCheckHook
36     responses
37   ];
39   disabledTests = [
40     # network tests
41     "testOrdersPatchTest"
42     "testOrdersCreateTest"
43     "testOrderGetRequestTest"
44   ];
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   };