There's a lot of bells and whistles in that example, that's true.  A minimal viable new dtype can be found [here](https://github.com/numpy/numpy/blob/7b2f20b406d27364c812f7a81a9c901afbd3600c/doc/newdtype_example/floatint.c) .