3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/twilio/default.nix

28 lines
753 B
Nix
Raw Normal View History

2017-10-19 08:49:24 +01:00
{ stdenv, buildPythonPackage, fetchFromGitHub
, pyjwt, pysocks, pytz, requests, six, nose, mock }:
buildPythonPackage rec {
pname = "twilio";
version = "6.8.0";
name = "${pname}-${version}";
# tests not included in PyPi, so fetch from github instead
src = fetchFromGitHub {
owner = "twilio";
repo = "twilio-python";
rev = version;
sha256 = "1vi3m6kvbmv643jbz95q59rcn871y0sss48kw2nqziyr5iswfx8c";
};
buildInputs = [ nose mock ];
propagatedBuildInputs = [ pyjwt pysocks pytz six requests ];
meta = with stdenv.lib; {
description = "Twilio API client and TwiML generator";
homepage = https://github.com/twilio/twilio-python/;
license = licenses.mit;
maintainers = with maintainers; [ flokli ];
};
}