python311Packages.rq: 1.15.1 -> 1.16.1

https://github.com/rq/rq/releases/tag/v1.16.0
https://github.com/rq/rq/releases/tag/v1.16.1

Convert to PEP517 builder and enable tests on Linux.
This commit is contained in:
Martin Weinelt
2024-03-17 17:14:49 +01:00
parent 1eee251d94
commit 40f7f66326
2 changed files with 38 additions and 7 deletions
+35 -6
View File
@@ -1,15 +1,27 @@
{ lib
, stdenv
, fetchFromGitHub
, buildPythonPackage
, pythonOlder
# build-system
, hatchling
# dependencies
, click
, redis
# tests
, psutil
, pytestCheckHook
, redis-server
, sentry-sdk
}:
buildPythonPackage rec {
pname = "rq";
version = "1.15.1";
format = "setuptools";
version = "1.16.1";
pyproject = true;
disabled = pythonOlder "3.7";
@@ -17,16 +29,33 @@ buildPythonPackage rec {
owner = "rq";
repo = "rq";
rev = "refs/tags/v${version}";
hash = "sha256-cymNXFI+6YEVw2Pc7u6+vroC0428oW7BTLxyBgPqLng=";
hash = "sha256-1E7jPTSQCjuKZVFL4uZqL1WZHnxWSLTNcnpyvfHz7oY=";
};
propagatedBuildInputs = [
build-system = [
hatchling
];
dependencies = [
click
redis
];
# Tests require a running Redis rerver
doCheck = false;
nativeCheckInputs = [
psutil
pytestCheckHook
sentry-sdk
];
preCheck = lib.optionalString stdenv.isLinux ''
PATH=$out/bin:$PATH
${redis-server}/bin/redis-server &
REDIS_PID=$!
'';
postCheck = lib.optionalString stdenv.isLinux ''
kill $REDIS_PID
'';
pythonImportsCheck = [
"rq"
+3 -1
View File
@@ -13101,7 +13101,9 @@ self: super: with self; {
rpyc4 = callPackage ../development/python-modules/rpyc4 { };
rq = callPackage ../development/python-modules/rq { };
rq = callPackage ../development/python-modules/rq {
redis-server = pkgs.redis;
};
rsa = callPackage ../development/python-modules/rsa { };