Files
nixpkgs/pkgs/development/python-modules/rollbar/default.nix
2025-03-28 23:56:56 +00:00

60 lines
1.0 KiB
Nix

{
lib,
aiocontextvars,
blinker,
buildPythonPackage,
fetchPypi,
setuptools,
httpx,
mock,
pytestCheckHook,
requests,
six,
pythonOlder,
webob,
}:
buildPythonPackage rec {
pname = "rollbar";
version = "1.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-UZQC6sObzE+khIIYcva7GEl/t7bIEWcEeGfRdxTTs3k=";
};
build-system = [ setuptools ];
dependencies = [
requests
six
];
nativeCheckInputs = [
webob
blinker
mock
httpx
aiocontextvars
pytestCheckHook
];
# Still supporting unittest2
# https://github.com/rollbar/pyrollbar/pull/346
# https://github.com/rollbar/pyrollbar/pull/340
doCheck = false;
pythonImportsCheck = [ "rollbar" ];
meta = with lib; {
description = "Error tracking and logging from Python to Rollbar";
mainProgram = "rollbar";
homepage = "https://github.com/rollbar/pyrollbar";
license = licenses.mit;
maintainers = [ ];
};
}