nixos/doh-server: init
[NixPkgs.git] / pkgs / development / python-modules / paypalhttp / default.nix
blob3563bb7454ee7a3a4c204486541d51863bf72c82
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
6   # propagates
7   pyopenssl,
8   requests,
9   six,
11   # tests
12   pytestCheckHook,
13   responses,
16 buildPythonPackage rec {
17   pname = "paypalhttp";
18   version = "1.0.0";
19   format = "setuptools";
21   src = fetchFromGitHub {
22     owner = "paypal";
23     repo = "paypalhttp_python";
24     tag = version;
25     hash = "sha256-3ihcpYtpcejPkiyf4g4jveyNU6flQB2sv9EZ5Pd7tUc=";
26   };
28   postPatch = ''
29     substituteInPlace tests/http_response_test.py \
30       --replace-fail assertEquals assertEqual
31   '';
33   propagatedBuildInputs = [
34     requests
35     six
36     pyopenssl
37   ];
39   nativeCheckInputs = [
40     pytestCheckHook
41     responses
42   ];
44   meta = with lib; {
45     changelog = "https://github.com/paypal/paypalhttp_python/releases/tag/${version}";
46     description = "PayPalHttp is a generic HTTP Client";
47     homepage = "https://github.com/paypal/paypalhttp_python";
48     license = licenses.mit;
49     maintainers = with maintainers; [ hexa ];
50   };