stripe-cli: 1.23.3 -> 1.23.5 (#375724)
[NixPkgs.git] / pkgs / development / python-modules / rq / default.nix
blob0774d4e05925a54601cf788bf02dd51e38372746
2   lib,
3   fetchFromGitHub,
4   buildPythonPackage,
5   pythonOlder,
7   # build-system
8   hatchling,
10   # dependencies
11   click,
12   redis,
14   # tests
15   psutil,
16   pytestCheckHook,
17   redis-server,
18   sentry-sdk,
21 buildPythonPackage rec {
22   pname = "rq";
23   version = "1.16.2";
24   pyproject = true;
26   disabled = pythonOlder "3.7";
28   src = fetchFromGitHub {
29     owner = "rq";
30     repo = "rq";
31     tag = "v${version}";
32     hash = "sha256-8uhCV4aJNbY273jOa9D5OlgEG1w3hXVncClKQTO9Pyk=";
33   };
35   build-system = [ hatchling ];
37   dependencies = [
38     click
39     redis
40   ];
42   nativeCheckInputs = [
43     psutil
44     pytestCheckHook
45     sentry-sdk
46   ];
48   preCheck = ''
49     PATH=$out/bin:$PATH
50     ${redis-server}/bin/redis-server &
51   '';
53   postCheck = ''
54     kill %%
55   '';
57   __darwinAllowLocalNetworking = true;
59   disabledTests = [
60     # https://github.com/rq/rq/commit/fd261d5d8fc0fe604fa396ee6b9c9b7a7bb4142f
61     "test_clean_large_registry"
62   ];
64   pythonImportsCheck = [ "rq" ];
66   meta = with lib; {
67     description = "Library for creating background jobs and processing them";
68     homepage = "https://github.com/nvie/rq/";
69     changelog = "https://github.com/rq/rq/releases/tag/v${version}";
70     license = licenses.bsd2;
71     maintainers = with maintainers; [ mrmebelman ];
72   };