From d4366ecfef04a389d0116ec9c3d3bb07e2e17c18 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 16 Apr 2026 01:58:15 +0200 Subject: [PATCH] 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 = [ ]; }; -} +})