Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 41 lines 859 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, redis 5, pytestCheckHook 6, process-tests 7, pkgs 8, withDjango ? false, django_redis 9}: 10 11buildPythonPackage rec { 12 pname = "python-redis-lock"; 13 version = "3.7.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "4265a476e39d476a8acf5c2766485c44c75f3a1bd6cf73bb195f3079153b8374"; 18 }; 19 20 propagatedBuildInputs = [ 21 redis 22 ] ++ lib.optional withDjango django_redis; 23 24 checkInputs = [ 25 pytestCheckHook 26 process-tests 27 pkgs.redis 28 ]; 29 30 disabledTests = [ 31 # https://github.com/ionelmc/python-redis-lock/issues/86 32 "test_no_overlap2" 33 ]; 34 35 meta = with lib; { 36 homepage = "https://github.com/ionelmc/python-redis-lock"; 37 license = licenses.bsd2; 38 description = "Lock context manager implemented via redis SETNX/BLPOP"; 39 maintainers = with maintainers; [ vanschelven ]; 40 }; 41}