{
  buildPythonPackage,
  fetchPypi,
  isPy27,
  lib,
}:

buildPythonPackage rec {
  pname = "spinners";
  version = "0.0.24";
  format = "setuptools";
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "0zz2z6dpdjdq5z8m8w8dfi8by0ih1zrdq0caxm1anwhxg2saxdhy";
  };

  # Tests are not included in the PyPI distribution and the git repo does not have tagged releases
  doCheck = false;
  pythonImportsCheck = [ "spinners" ];

  meta = with lib; {
    description = "Spinners for the Terminal";
    homepage = "https://github.com/manrajgrover/py-spinners";
    license = licenses.mit;
    maintainers = with maintainers; [ urbas ];
  };
}
