{
  lib,
  buildPythonPackage,
  fetchPypi,
  jupyterhub,
}:

buildPythonPackage rec {
  pname = "jupyterhub-tmpauthenticator";
  version = "1.0.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-7TuAYP6mRffsZL+O+AMgt5HBu6PhwLYj5A8X8DnMfl0=";
  };

  propagatedBuildInputs = [ jupyterhub ];

  # No tests available in the package
  doCheck = false;

  pythonImportsCheck = [ "tmpauthenticator" ];

  meta = {
    description = "Simple Jupyterhub authenticator that allows anyone to log in";
    homepage = "https://github.com/jupyterhub/tmpauthenticator";
    changelog = "https://github.com/jupyterhub/tmpauthenticator/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ chiroptical ];
  };
}
