#!/usr/bin/env bash
TYPES="html pdf-a4 pdf-letter text"
URL=http://docs.python.org/ftp/python/doc/VERSION/python-VERSION-docs-TYPE.tar.bz2
VERSIONS=$(for major in 2 3; do curl https://docs.python.org/$major/archives/ 2>/dev/null | perl -l -n -e'/default.nix <>default.nix < ${outfile}
attrname=python${major}${minor}
cat >>default.nix <> default.nix
done
echo "}; in pythonDocs" >> default.nix