python3Packages.pika: enable tests (#122170)
This commit is contained in:
parent
3d385c7894
commit
282576e2ef
|
@ -1,6 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, gevent
|
, gevent
|
||||||
, nose
|
, nose
|
||||||
, mock
|
, mock
|
||||||
|
@ -12,12 +12,34 @@ buildPythonPackage rec {
|
||||||
pname = "pika";
|
pname = "pika";
|
||||||
version = "1.2.0";
|
version = "1.2.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "pika";
|
||||||
sha256 = "f023d6ac581086b124190cb3dc81dd581a149d216fa4540ac34f9be1e3970b89";
|
repo = "pika";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-Wog6Wxa8V/zv/bBrFOigZi6KE5qRf82bf1GK2XwvpDI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ nose mock twisted tornado gevent ];
|
propagatedBuildInputs = [ gevent tornado twisted ];
|
||||||
|
|
||||||
|
checkInputs = [ nose mock ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# don't stop at first test failure
|
||||||
|
# don't run acceptance tests because they access the network
|
||||||
|
# don't report test coverage
|
||||||
|
substituteInPlace setup.cfg \
|
||||||
|
--replace "stop = 1" "stop = 0" \
|
||||||
|
--replace "tests=tests/unit,tests/acceptance" "tests=tests/unit" \
|
||||||
|
--replace "with-coverage = 1" "with-coverage = 0"
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
|
PIKA_TEST_TLS=true nosetests
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Pure-Python implementation of the AMQP 0-9-1 protocol";
|
description = "Pure-Python implementation of the AMQP 0-9-1 protocol";
|
||||||
|
|
Loading…
Reference in a new issue