pythonPackages.python3pika: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-25 21:41:54 -04:00 committed by Frederik Rietdijk
parent f3a01ad2c9
commit 6d9a7397f1
2 changed files with 34 additions and 16 deletions

View 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;
};
}

View File

@ -3178,22 +3178,7 @@ in {
pysoundfile = callPackage ../development/python-modules/pysoundfile { };
python3pika = buildPythonPackage {
name = "python3-pika-0.9.14";
disabled = !isPy3k;
# Unit tests adds dependencies on pyev, tornado and twisted (and twisted is disabled for Python 3)
doCheck = false;
src = pkgs.fetchurl {
url = mirror://pypi/p/python3-pika/python3-pika-0.9.14.tar.gz;
sha256 = "1c3hifwvn04kvlja88iawf0awyz726jynwnpcb6gn7376b4nfch7";
};
buildInputs = with self; [ nose mock pyyaml ];
propagatedBuildInputs = with self; [ unittest2 ];
};
python3pika = callPackage ../development/python-modules/python3pika { };
python-jenkins = buildPythonPackage rec {
name = "python-jenkins-${version}";