pythonPackages.python3pika: refactor move to python-modules
This commit is contained in:
committed by
Frederik Rietdijk
parent
f3a01ad2c9
commit
6d9a7397f1
33
pkgs/development/python-modules/python3pika/default.nix
Normal file
33
pkgs/development/python-modules/python3pika/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, nose
|
||||
, mock
|
||||
, pyyaml
|
||||
, unittest2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python3-pika";
|
||||
version = "0.9.14";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1c3hifwvn04kvlja88iawf0awyz726jynwnpcb6gn7376b4nfch7";
|
||||
};
|
||||
|
||||
# Unit tests adds dependencies on pyev, tornado and twisted (and twisted is disabled for Python 3)
|
||||
doCheck = false;
|
||||
|
||||
buildInputs = [ nose mock pyyaml ];
|
||||
propagatedBuildInputs = [ unittest2 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://pika.readthedocs.org/;
|
||||
description = "Pika Python AMQP Client Library";
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user