mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
pythonPackages.kombu: fix tests
This commit is contained in:
parent
3ba8ce13dd
commit
5e85873d70
@ -1,4 +1,11 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pytest, case, pytz, Pyro4, amqp }:
|
{ lib, buildPythonPackage, fetchPypi
|
||||||
|
, amqp
|
||||||
|
, case
|
||||||
|
, Pyro4
|
||||||
|
, pytest
|
||||||
|
, pytz
|
||||||
|
, sqlalchemy
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "kombu";
|
pname = "kombu";
|
||||||
@ -10,13 +17,20 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace requirements/test.txt --replace "pytest-sugar" ""
|
substituteInPlace requirements/test.txt \
|
||||||
|
--replace "pytest-sugar" ""
|
||||||
|
substituteInPlace requirements/default.txt \
|
||||||
|
--replace "amqp==2.5.1" "amqp~=2.5"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ pytest case pytz Pyro4 ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ amqp ];
|
propagatedBuildInputs = [ amqp ];
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Messaging library for Python";
|
description = "Messaging library for Python";
|
||||||
homepage = https://github.com/celery/kombu;
|
homepage = https://github.com/celery/kombu;
|
||||||
|
Loading…
Reference in New Issue
Block a user