From d4366ecfef04a389d0116ec9c3d3bb07e2e17c18 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 16 Apr 2026 01:58:15 +0200 Subject: [PATCH 1/2] python3Packages.pyasn1: 0.6.2 -> 0.6.3 https://github.com/pyasn1/pyasn1/blob/v0.6.3/CHANGES.rst Fixes: CVE-2026-30922 --- .../python-modules/pyasn1/default.nix | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/pyasn1/default.nix b/pkgs/development/python-modules/pyasn1/default.nix index 788939ad6a7e..dc4a86879a32 100644 --- a/pkgs/development/python-modules/pyasn1/default.nix +++ b/pkgs/development/python-modules/pyasn1/default.nix @@ -1,29 +1,34 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, setuptools, + pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pyasn1"; - version = "0.6.2"; + version = "0.6.3"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-m1mislun5PgZfbdobAn7M+ZYuYM5+tuCbpUSYpAXgzs="; + src = fetchFromGitHub { + owner = "pyasn1"; + repo = "pyasn1"; + tag = "v${finalAttrs.version}"; + hash = "sha256-fHpAJ1WSoLwaWuSMcfHjZmnl8oNhADrdjHaYIEmqQiw="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; + + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pyasn1" ]; meta = { description = "Generic ASN.1 library for Python"; homepage = "https://pyasn1.readthedocs.io"; - changelog = "https://github.com/etingof/pyasn1/blob/master/CHANGES.rst"; + changelog = "https://github.com/pyasn1/pyasn1/blob/${finalAttrs.src.tag}/CHANGES.rst"; license = lib.licenses.bsd2; maintainers = [ ]; }; -} +}) From 693eb1a3073278309aa9b87f20bbd7ae61161e00 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 16 Apr 2026 01:59:37 +0200 Subject: [PATCH 2/2] python3Packages.brother: 6.0.0 -> 6.1.0 https://github.com/bieniu/brother/releases/tag/6.1.0 --- pkgs/development/python-modules/brother/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/brother/default.nix b/pkgs/development/python-modules/brother/default.nix index 19c121c08e5f..f24d76be680b 100644 --- a/pkgs/development/python-modules/brother/default.nix +++ b/pkgs/development/python-modules/brother/default.nix @@ -15,7 +15,7 @@ buildPythonPackage rec { pname = "brother"; - version = "6.0.0"; + version = "6.1.0"; pyproject = true; disabled = pythonOlder "3.12"; @@ -24,7 +24,7 @@ buildPythonPackage rec { owner = "bieniu"; repo = "brother"; tag = version; - hash = "sha256-kvR4891kaZFHKZhtgrrgtGJZUIwoYE5CsGUEQM7eKvs="; + hash = "sha256-coV2jOxxqwP5LTh9QvyRvBcgVDENEm/IP9LRJu/Me+c="; }; build-system = [ setuptools ];