pythonPackages.python3pika: refactor move to python-modules
This commit is contained in:
parent
f3a01ad2c9
commit
6d9a7397f1
|
@ -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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -3178,22 +3178,7 @@ in {
|
||||||
|
|
||||||
pysoundfile = callPackage ../development/python-modules/pysoundfile { };
|
pysoundfile = callPackage ../development/python-modules/pysoundfile { };
|
||||||
|
|
||||||
python3pika = buildPythonPackage {
|
python3pika = callPackage ../development/python-modules/python3pika { };
|
||||||
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 ];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
python-jenkins = buildPythonPackage rec {
|
python-jenkins = buildPythonPackage rec {
|
||||||
name = "python-jenkins-${version}";
|
name = "python-jenkins-${version}";
|
||||||
|
|
Loading…
Reference in New Issue