nixpkgs/pkgs/development/python-modules/twilio/default.nix

38 lines
759 B
Nix
Raw Normal View History

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