depot/third_party/nixpkgs/pkgs/development/python-modules/twilio/default.nix
Default email 646c172193 Project import generated by Copybara.
GitOrigin-RevId: c478eaf416411a7dedf773185b6d5bfc966a80ae
2021-12-21 10:18:32 +08:00

47 lines
764 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, nose
, pyjwt
, pythonOlder
, pytz
, requests
}:
buildPythonPackage rec {
pname = "twilio";
version = "7.4.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "twilio";
repo = "twilio-python";
rev = version;
sha256 = "sha256-gN9cVBhiO34uj2ZGqXrnlvOlSaGxry0tMxaTK4SYhjM=";
};
propagatedBuildInputs = [
pyjwt
pytz
requests
];
checkInputs = [
mock
nose
];
pythonImportsCheck = [
"twilio"
];
meta = with lib; {
description = "Twilio API client and TwiML generator";
homepage = "https://github.com/twilio/twilio-python/";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}