From de757d162ccddfbc56202142c6049cd3c5879731 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 28 Mar 2024 10:06:55 +0100 Subject: [PATCH 1/4] python311Packages.sentry-sdk: 1.42.0 -> 1.43.0 Diff: https://github.com/getsentry/sentry-python/compare/refs/tags/1.42.0...1.43.0 Changelog: https://github.com/getsentry/sentry-python/blob/1.43.0/CHANGELOG.md --- pkgs/development/python-modules/sentry-sdk/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/sentry-sdk/default.nix b/pkgs/development/python-modules/sentry-sdk/default.nix index f225853368b5..9a173b7597d3 100644 --- a/pkgs/development/python-modules/sentry-sdk/default.nix +++ b/pkgs/development/python-modules/sentry-sdk/default.nix @@ -38,7 +38,7 @@ buildPythonPackage rec { pname = "sentry-sdk"; - version = "1.42.0"; + version = "1.43.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -47,7 +47,7 @@ buildPythonPackage rec { owner = "getsentry"; repo = "sentry-python"; rev = "refs/tags/${version}"; - hash = "sha256-LZn7oWwKdHi/KScitFnNDX7pI92mNkC6niGP+BixjtA="; + hash = "sha256-HBmAIsn19pdiCnllyWiNdY6QkObvYgK+KDxrmr1VPgA="; }; nativeBuildInputs = [ From a7056eb22e83dc66b185eb2ac96c7ca06990ea5c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Apr 2024 00:24:45 +0200 Subject: [PATCH 2/4] python312Packages.sentry-sdk: 1.43.0 -> 1.45.0 Diff: https://github.com/getsentry/sentry-python/compare/refs/tags/1.43.0...1.45.0 Changelog: https://github.com/getsentry/sentry-python/blob/1.45.0/CHANGELOG.md --- pkgs/development/python-modules/sentry-sdk/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/sentry-sdk/default.nix b/pkgs/development/python-modules/sentry-sdk/default.nix index 9a173b7597d3..599af753270a 100644 --- a/pkgs/development/python-modules/sentry-sdk/default.nix +++ b/pkgs/development/python-modules/sentry-sdk/default.nix @@ -38,7 +38,7 @@ buildPythonPackage rec { pname = "sentry-sdk"; - version = "1.43.0"; + version = "1.45.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -47,7 +47,7 @@ buildPythonPackage rec { owner = "getsentry"; repo = "sentry-python"; rev = "refs/tags/${version}"; - hash = "sha256-HBmAIsn19pdiCnllyWiNdY6QkObvYgK+KDxrmr1VPgA="; + hash = "sha256-OWoMqJlf0vmBHWWsW6mF4u5X9USzxkFmCJyX7Ws0dD0="; }; nativeBuildInputs = [ From fa30aeaecf7d82d2b9beb0cfb6505cf9d5134ad4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Apr 2024 00:26:16 +0200 Subject: [PATCH 3/4] python312Packages.sentry-sdk: refactor --- pkgs/development/python-modules/sentry-sdk/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/sentry-sdk/default.nix b/pkgs/development/python-modules/sentry-sdk/default.nix index 599af753270a..79348ee2f645 100644 --- a/pkgs/development/python-modules/sentry-sdk/default.nix +++ b/pkgs/development/python-modules/sentry-sdk/default.nix @@ -50,11 +50,11 @@ buildPythonPackage rec { hash = "sha256-OWoMqJlf0vmBHWWsW6mF4u5X9USzxkFmCJyX7Ws0dD0="; }; - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ certifi urllib3 ]; From fe1bedbd902ca515fedb10a8c0a8e436937a8574 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Apr 2024 00:26:38 +0200 Subject: [PATCH 4/4] python312Packages.sentry-sdk: format with nixfmt --- .../python-modules/sentry-sdk/default.nix | 156 ++++++++---------- 1 file changed, 66 insertions(+), 90 deletions(-) diff --git a/pkgs/development/python-modules/sentry-sdk/default.nix b/pkgs/development/python-modules/sentry-sdk/default.nix index 79348ee2f645..3f57549a1e39 100644 --- a/pkgs/development/python-modules/sentry-sdk/default.nix +++ b/pkgs/development/python-modules/sentry-sdk/default.nix @@ -1,39 +1,40 @@ -{ lib -, stdenv -, aiohttp -, apache-beam -, asttokens -, blinker -, bottle -, buildPythonPackage -, celery -, certifi -, chalice -, django -, executing -, falcon -, fetchFromGitHub -, flask -, gevent -, httpx -, jsonschema -, mock -, pure-eval -, pyrsistent -, pyspark -, pysocks -, pytest-forked -, pytest-localserver -, pytest-watch -, pytestCheckHook -, pythonOlder -, quart -, rq -, sanic -, setuptools -, sqlalchemy -, tornado -, urllib3 +{ + lib, + stdenv, + aiohttp, + apache-beam, + asttokens, + blinker, + bottle, + buildPythonPackage, + celery, + certifi, + chalice, + django, + executing, + falcon, + fetchFromGitHub, + flask, + gevent, + httpx, + jsonschema, + mock, + pure-eval, + pyrsistent, + pyspark, + pysocks, + pytest-forked, + pytest-localserver, + pytest-watch, + pytestCheckHook, + pythonOlder, + quart, + rq, + sanic, + setuptools, + sqlalchemy, + tornado, + urllib3, }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { hash = "sha256-OWoMqJlf0vmBHWWsW6mF4u5X9USzxkFmCJyX7Ws0dD0="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ certifi @@ -60,37 +59,19 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - aiohttp = [ - aiohttp - ]; - beam = [ - apache-beam - ]; - bottle = [ - bottle - ]; - celery = [ - celery - ]; - chalice = [ - chalice - ]; - django = [ - django - ]; - falcon = [ - falcon - ]; + aiohttp = [ aiohttp ]; + beam = [ apache-beam ]; + bottle = [ bottle ]; + celery = [ celery ]; + chalice = [ chalice ]; + django = [ django ]; + falcon = [ falcon ]; flask = [ flask blinker ]; - httpx = [ - httpx - ]; - pyspark = [ - pyspark - ]; + httpx = [ httpx ]; + pyspark = [ pyspark ]; pure_eval = [ asttokens executing @@ -100,18 +81,10 @@ buildPythonPackage rec { quart blinker ]; - rq = [ - rq - ]; - sanic = [ - sanic - ]; - sqlalchemy = [ - sqlalchemy - ]; - tornado = [ - tornado - ]; + rq = [ rq ]; + sanic = [ sanic ]; + sqlalchemy = [ sqlalchemy ]; + tornado = [ tornado ]; }; nativeCheckInputs = [ @@ -137,24 +110,27 @@ buildPythonPackage rec { "test_default_release" ]; - disabledTestPaths = [ - # Varius integration tests fail every once in a while when we - # upgrade dependencies, so don't bother testing them. - "tests/integrations/" - ] ++ lib.optionals (stdenv.buildPlatform != "x86_64-linux") [ - # test crashes on aarch64 - "tests/test_transport.py" - ]; + disabledTestPaths = + [ + # Varius integration tests fail every once in a while when we + # upgrade dependencies, so don't bother testing them. + "tests/integrations/" + ] + ++ lib.optionals (stdenv.buildPlatform != "x86_64-linux") [ + # test crashes on aarch64 + "tests/test_transport.py" + ]; - pythonImportsCheck = [ - "sentry_sdk" - ]; + pythonImportsCheck = [ "sentry_sdk" ]; meta = with lib; { description = "Python SDK for Sentry.io"; homepage = "https://github.com/getsentry/sentry-python"; changelog = "https://github.com/getsentry/sentry-python/blob/${version}/CHANGELOG.md"; license = licenses.bsd2; - maintainers = with maintainers; [ fab gebner ]; + maintainers = with maintainers; [ + fab + gebner + ]; }; }