{ stdenv
, buildPythonPackage
, fetchPypi
, mock
, nose
, pep8
, pylint
, mccabe
}:

buildPythonPackage rec {
  version = "3.0.1";
  pname = "pamqp";

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

  buildInputs = [ mock nose pep8 pylint mccabe ];

  meta = with stdenv.lib; {
    description = "RabbitMQ Focused AMQP low-level library";
    homepage = "https://pypi.python.org/pypi/pamqp";
    license = licenses.bsd3;
  };

}

{ stdenv
, buildPythonPackage
, fetchPypi
, mock
, nose
, pep8
, pylint
, mccabe
}:

buildPythonPackage rec {
  version = "2.3.0";
  pname = "pamqp";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1s4lwbsiikz3czqad7jarb7k303q0wamla0rirghvwl9bslgbl2w";
  };

  buildInputs = [ mock nose pep8 pylint mccabe ];

  meta = with stdenv.lib; {
    description = "RabbitMQ Focused AMQP low-level library";
    homepage = "https://pypi.python.org/pypi/pamqp";
    license = licenses.bsd3;
  };

}

Revert "python: pamqp: 2.3.0 -> 3.0.1"
Revert "python: pamqp: 2.3.0 -> 3.0.1"

No version of pythonPackages.rabbitpy currently exists that supports 3.0.1

This reverts commit 4250cdeee909dc9038b9048d82d19c52488a93c7.
