nixpkgs/pkgs/development/python-modules/twilio/default.nix
2022-04-06 05:48:06 +00:00

49 lines
803 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pyjwt
, pytz
, requests
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "twilio";
version = "7.8.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "twilio";
repo = "twilio-python";
rev = "refs/tags/${version}";
sha256 = "sha256-r28iKUv+i8D6JLvsJA7x8T2KFzK26limIwqsXC5jjSE=";
};
propagatedBuildInputs = [
pyjwt
pytz
requests
];
checkInputs = [
mock
pytestCheckHook
];
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; [ ];
};
}