Skip to content

Commit

Permalink
python3Packages.python-redis-lock: disable failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed May 7, 2021
1 parent 2b1cc50 commit efa7dcf
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions pkgs/development/python-modules/python-redis-lock/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, redis
, pytest
, pytestCheckHook
, process-tests
, pkgs
, withDjango ? false, django_redis
Expand All @@ -17,15 +17,20 @@ buildPythonPackage rec {
sha256 = "4265a476e39d476a8acf5c2766485c44c75f3a1bd6cf73bb195f3079153b8374";
};

checkInputs = [ pytest process-tests pkgs.redis ];
propagatedBuildInputs = [
redis
] ++ lib.optional withDjango django_redis;

checkPhase = ''
pytest tests/
'';

propagatedBuildInputs = [ redis ]
++ lib.optional withDjango django_redis;
checkInputs = [
pytestCheckHook
process-tests
pkgs.redis
];

disabledTests = [
# https://github.com/ionelmc/python-redis-lock/issues/86
"test_no_overlap2"
];

meta = with lib; {
homepage = "https://github.com/ionelmc/python-redis-lock";
Expand Down

0 comments on commit efa7dcf

Please sign in to comment.