The pinhole has two properties:
1. apparent focal length (ie. what a standard lens would have to be to give similar effect) from the equation is inversely proportional to the square of the diameter of the pinhole
2. the apparent aperture (ie. what a conventional lens would have to be to give the same effect) which is inversely proportional to the diameter of the pinhole.
None of this has any bearing on the size of the sensor/film used - because as the pinhole gets larger, the image cone gets smaller - so you will find that as you make larger holes then the image cast onto a sensor at any given depth from the pinhole will get smaller too.
Any Physics teachers in the house?
EDIT:
I should have looked in a Physics textbook and not on t'interweb...
The equation I set out from has one purpose only - to calculate the optimum diameter for the hole in your pinhole camera.
d = (1.9).sqrt (f.l)
f= hole to image plane distance (say 30mm a reasonable estimate - not sticking a ruler into my camera to find out

)
l = wavelength of the light of interest (normal to use 550nm as a guide)
d = optimum size of the hole
That gives an optimum hole diameter of 0.244mm (call it 0.25mm for cash)
None of which bears any relation to the apparent (as if replaced by a conventional lens) focal length or aperture. But DOF can be regarded as infinite in the first instance...