diff --git a/pkgs/development/python-modules/httpretty/default.nix b/pkgs/development/python-modules/httpretty/default.nix new file mode 100644 index 000000000000..1f135255bc04 --- /dev/null +++ b/pkgs/development/python-modules/httpretty/default.nix @@ -0,0 +1,50 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, tornado +, requests +, httplib2 +, sure +, nose +, coverage +, certifi +, urllib3 +, isPy3k +}: + +buildPythonPackage rec { + pname = "httpretty"; + version = "0.8.10"; + doCheck = false; + + src = fetchPypi { + inherit pname version; + sha256 = "1nmdk6d89z14x3wg4yxywlxjdip16zc8bqnfb471z1365mr74jj7"; + }; + + buildInputs = [ tornado requests httplib2 sure nose coverage certifi ]; + propagatedBuildInputs = [ urllib3 ]; + + postPatch = '' + sed -i -e 's/==.*$//' *requirements.txt + # XXX: Drop this after version 0.8.4 is released. + patch httpretty/core.py <