depot/third_party/nixpkgs/pkgs/development/python-modules/paypalhttp/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

45 lines
854 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# propagates
, pyopenssl
, requests
, six
# tests
, pytestCheckHook
, responses
}:
buildPythonPackage rec {
pname = "paypalhttp";
version = "1.0.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "paypal";
repo = "paypalhttp_python";
rev = "refs/tags/${version}";
hash = "sha256-3ihcpYtpcejPkiyf4g4jveyNU6flQB2sv9EZ5Pd7tUc=";
};
propagatedBuildInputs = [
requests
six
pyopenssl
];
nativeCheckInputs = [
pytestCheckHook
responses
];
meta = with lib; {
changelog = "https://github.com/paypal/paypalhttp_python/releases/tag/${version}";
description = "PayPalHttp is a generic HTTP Client";
homepage = "https://github.com/paypal/paypalhttp_python";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}