We start with definition of $Rx(\theta_x)$ and $Ry(\theta_y)$ rotations:
$$
Rx(\theta_x)=
\begin{pmatrix}
\cos(\theta_x/2) & -i\sin(\theta_x/2)\\
-i\sin(\theta_x/2) & \cos(\theta_x/2)
\end{pmatrix}
$$
$$
Ry(\theta_y)=
\begin{pmatrix}
\cos(\theta_y/2) & -\sin(\theta_y/2)\\
\sin(\theta_y/2) & \cos(\theta_y/2)
\end{pmatrix}
$$
Setting $\theta_x = \pi$ we have
$$
Rx(\pi)=
\begin{pmatrix}
0 & -i\\
-i & 0
\end{pmatrix}
=-i
\begin{pmatrix}
0 & 1\\
1 & 0
\end{pmatrix}
=-iX,
$$
which is NOT gate ($X$), up to global phase represented by $-i$. However, the global phase can be neglected and we are left with $X$ gate.
If we put $\theta_y = \pi/2$ we get
$$
Ry(\pi/2)=
\frac{1}{\sqrt{2}}
\begin{pmatrix}
1 & -1\\
1 & 1
\end{pmatrix}
$$
Multiplying $XRy(\pi/2)$ we get
$$
XRy(\pi/2)=
\begin{pmatrix}
0 & 1\\
1 & 0
\end{pmatrix}
\frac{1}{\sqrt{2}}
\begin{pmatrix}
1 & -1\\
1 & 1
\end{pmatrix}
=\frac{1}{\sqrt{2}}
\begin{pmatrix}
1 & 1\\
1 & -1
\end{pmatrix}
=H
$$