forked from mirrors/nixpkgs
1eb641d9c1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-pika/versions
(cherry picked from commit fa0e8ffa92
)
36 lines
689 B
Nix
36 lines
689 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy3k
|
|
, nose
|
|
, mock
|
|
, pyyaml
|
|
, unittest2
|
|
, pyev
|
|
, twisted
|
|
, tornado
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pika";
|
|
version = "1.0.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "119lpjzw8wd7c6ikn35c0pvr3zzfy20rklpxdkcmp12wnf9i597v";
|
|
};
|
|
|
|
# Tests require twisted which is only availalble for python-2.x
|
|
doCheck = !isPy3k;
|
|
|
|
buildInputs = [ nose mock pyyaml unittest2 pyev ]
|
|
++ stdenv.lib.optionals (!isPy3k) [ twisted tornado ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Pure-Python implementation of the AMQP 0-9-1 protocol";
|
|
homepage = https://pika.readthedocs.org;
|
|
license = licenses.bsd3;
|
|
};
|
|
|
|
}
|