diff options
Diffstat (limited to 'pkgs/development/python-modules/rq/default.nix')
-rw-r--r-- | pkgs/development/python-modules/rq/default.nix | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/pkgs/development/python-modules/rq/default.nix b/pkgs/development/python-modules/rq/default.nix index 45c8627be5df1..c4e408cced64b 100644 --- a/pkgs/development/python-modules/rq/default.nix +++ b/pkgs/development/python-modules/rq/default.nix @@ -1,26 +1,27 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, pythonOlder +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, -# build-system -, hatchling + # build-system + hatchling, -# dependencies -, click -, redis + # dependencies + click, + redis, -# tests -, psutil -, pytestCheckHook -, redis-server -, sentry-sdk + # tests + psutil, + pytestCheckHook, + redis-server, + sentry-sdk, }: buildPythonPackage rec { pname = "rq"; - version = "1.16.1"; + version = "1.16.2"; pyproject = true; disabled = pythonOlder "3.7"; @@ -29,12 +30,10 @@ buildPythonPackage rec { owner = "rq"; repo = "rq"; rev = "refs/tags/v${version}"; - hash = "sha256-1E7jPTSQCjuKZVFL4uZqL1WZHnxWSLTNcnpyvfHz7oY="; + hash = "sha256-8uhCV4aJNbY273jOa9D5OlgEG1w3hXVncClKQTO9Pyk="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ click @@ -47,25 +46,24 @@ buildPythonPackage rec { sentry-sdk ]; - preCheck = lib.optionalString stdenv.isLinux '' + preCheck = '' PATH=$out/bin:$PATH ${redis-server}/bin/redis-server & - REDIS_PID=$! ''; - postCheck = lib.optionalString stdenv.isLinux '' - kill $REDIS_PID + postCheck = '' + kill %% ''; - pythonImportsCheck = [ - "rq" - ]; + __darwinAllowLocalNetworking = true; disabledTests = [ - # AttributeError + # https://github.com/rq/rq/commit/fd261d5d8fc0fe604fa396ee6b9c9b7a7bb4142f "test_clean_large_registry" ]; + pythonImportsCheck = [ "rq" ]; + meta = with lib; { description = "Library for creating background jobs and processing them"; homepage = "https://github.com/nvie/rq/"; @@ -74,4 +72,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ mrmebelman ]; }; } - |