about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/amqp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/amqp/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/amqp/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/amqp/default.nix b/nixpkgs/pkgs/development/python-modules/amqp/default.nix
new file mode 100644
index 000000000000..8dad26bbb2ba
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/amqp/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, buildPythonPackage, fetchPypi, pytest, case, vine, pytest-sugar }:
+
+buildPythonPackage rec {
+  pname = "amqp";
+  version = "2.5.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "77f1aef9410698d20eaeac5b73a87817365f457a507d82edf292e12cbb83b08d";
+  };
+
+  checkInputs = [ pytest case pytest-sugar ];
+  propagatedBuildInputs = [ vine ];
+
+  # Disable because pytest-sugar requires an old version of pytest
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/celery/py-amqp;
+    description = "Python client for the Advanced Message Queuing Procotol (AMQP). This is a fork of amqplib which is maintained by the Celery project";
+    license = licenses.lgpl21;
+  };
+}