Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 690 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, nose 6, mock 7, pyyaml 8, unittest2 9, pyev 10, twisted 11, tornado 12}: 13 14buildPythonPackage rec { 15 pname = "pika"; 16 version = "0.13.0"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "1104b0jm7qs9b211hw6siddflvf56ag4lfsjy6yfbczds4lxhf2k"; 21 }; 22 23 # Tests require twisted which is only availalble for python-2.x 24 doCheck = !isPy3k; 25 26 buildInputs = [ nose mock pyyaml unittest2 pyev ] 27 ++ stdenv.lib.optionals (!isPy3k) [ twisted tornado ]; 28 29 meta = with stdenv.lib; { 30 description = "Pure-Python implementation of the AMQP 0-9-1 protocol"; 31 homepage = https://pika.readthedocs.org; 32 license = licenses.bsd3; 33 }; 34 35}