1{
2 lib,
3 aiocontextvars,
4 blinker,
5 buildPythonPackage,
6 fetchPypi,
7 fetchpatch,
8 httpx,
9 mock,
10 pytestCheckHook,
11 requests,
12 six,
13 pythonOlder,
14 webob,
15}:
16
17buildPythonPackage rec {
18 pname = "rollbar";
19 version = "1.0.0";
20 format = "setuptools";
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-Y0e35J8i8ClvwoemrqddZCz2RJTS7hJwQqelk8l9868=";
27 };
28
29 propagatedBuildInputs = [
30 requests
31 six
32 ];
33
34 nativeCheckInputs = [
35 webob
36 blinker
37 mock
38 httpx
39 aiocontextvars
40 pytestCheckHook
41 ];
42
43 # Still supporting unittest2
44 # https://github.com/rollbar/pyrollbar/pull/346
45 # https://github.com/rollbar/pyrollbar/pull/340
46 doCheck = false;
47
48 pythonImportsCheck = [ "rollbar" ];
49
50 meta = with lib; {
51 description = "Error tracking and logging from Python to Rollbar";
52 mainProgram = "rollbar";
53 homepage = "https://github.com/rollbar/pyrollbar";
54 license = licenses.mit;
55 maintainers = with maintainers; [ ];
56 };
57}