2019-10-27 16:37:13 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, amqp
|
|
|
|
, case
|
|
|
|
, Pyro4
|
|
|
|
, pytest
|
|
|
|
, pytz
|
|
|
|
, sqlalchemy
|
|
|
|
}:
|
2018-07-14 12:19:09 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-02-14 23:01:55 +00:00
|
|
|
pname = "kombu";
|
2019-12-10 18:07:39 +00:00
|
|
|
version = "4.6.7";
|
2018-07-14 12:19:09 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-10 18:07:39 +00:00
|
|
|
sha256 = "67b32ccb6fea030f8799f8fd50dd08e03a4b99464ebc4952d71d8747b1a52ad1";
|
2018-07-14 12:19:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2019-10-27 16:37:13 +00:00
|
|
|
substituteInPlace requirements/test.txt \
|
|
|
|
--replace "pytest-sugar" ""
|
|
|
|
substituteInPlace requirements/default.txt \
|
|
|
|
--replace "amqp==2.5.1" "amqp~=2.5"
|
2018-07-14 12:19:09 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ amqp ];
|
|
|
|
|
2019-10-27 16:37:13 +00:00
|
|
|
checkInputs = [ pytest case pytz Pyro4 sqlalchemy ];
|
|
|
|
# test_redis requires fakeredis, which isn't trivial to package
|
|
|
|
checkPhase = ''
|
|
|
|
pytest --ignore t/unit/transport/test_redis.py
|
|
|
|
'';
|
|
|
|
|
2018-07-14 12:19:09 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Messaging library for Python";
|
|
|
|
homepage = https://github.com/celery/kombu;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|