1{ lib, buildPythonPackage, fetchPypi, pbr }: 2 3buildPythonPackage rec { 4 pname = "requestsexceptions"; 5 version = "1.4.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "b095cbc77618f066d459a02b137b020c37da9f46d9b057704019c9f77dba3065"; 10 }; 11 12 propagatedBuildInputs = [ pbr ]; 13 14 # upstream hacking package is not required for functional testing 15 patchPhase = '' 16 sed -i '/^hacking/d' test-requirements.txt 17 ''; 18 19 meta = with lib; { 20 description = "Import exceptions from potentially bundled packages in requests."; 21 homepage = "https://pypi.python.org/pypi/requestsexceptions"; 22 license = licenses.asl20; 23 maintainers = with maintainers; [ makefu ]; 24 platforms = platforms.all; 25 }; 26}