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