From 1e3e005a5f9ec6591010901082a78d889ca13908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 30 Sep 2025 08:05:43 -0700 Subject: [PATCH 1/2] python3Packages.pycparser: 2.22 -> 2.23 Diff: https://github.com/eliben/pycparser/compare/release_v2.22...release_v2.23 Changelog: https://github.com/eliben/pycparser/releases/tag/release_v2.23 --- .../python-modules/pycparser/default.nix | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/pycparser/default.nix b/pkgs/development/python-modules/pycparser/default.nix index fb2e5cbda0e0..ee58976384d7 100644 --- a/pkgs/development/python-modules/pycparser/default.nix +++ b/pkgs/development/python-modules/pycparser/default.nix @@ -1,36 +1,44 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, + gitUpdater, setuptools, unittestCheckHook, - pythonOlder, }: buildPythonPackage rec { pname = "pycparser"; - version = "2.22"; + version = "2.23"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-SRyL6cBA9TkPW/RKWwd1K9B/Vu35kjgbBccBQ57sEPY="; + src = fetchFromGitHub { + owner = "eliben"; + repo = "pycparser"; + tag = "release_v${version}"; + hash = "sha256-dkteM8VizYf9ZLPOe8od5CZgg7a3fs4Hy+t8bGLV/GI="; }; build-system = [ setuptools ]; + pythonImportsCheck = [ "pycparser" ]; + nativeCheckInputs = [ unittestCheckHook ]; - disabled = pythonOlder "3.8"; unittestFlagsArray = [ "-s" "tests" ]; - meta = with lib; { + passthru.updateScript = gitUpdater { + rev-prefix = "release_v"; + }; + + meta = { + changelog = "https://github.com/eliben/pycparser/releases/tag/${src.tag}"; description = "C parser in Python"; homepage = "https://github.com/eliben/pycparser"; - license = licenses.bsd3; + license = lib.licenses.bsd3; maintainers = [ ]; }; } From 8a7d22e0c4622763d83d0be0484944df2fb4dd23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 30 Sep 2025 08:12:23 -0700 Subject: [PATCH 2/2] python3Packages.pycparser: add dotlambda to maintainers --- pkgs/development/python-modules/pycparser/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pycparser/default.nix b/pkgs/development/python-modules/pycparser/default.nix index ee58976384d7..9f2068a0e72f 100644 --- a/pkgs/development/python-modules/pycparser/default.nix +++ b/pkgs/development/python-modules/pycparser/default.nix @@ -39,6 +39,6 @@ buildPythonPackage rec { description = "C parser in Python"; homepage = "https://github.com/eliben/pycparser"; license = lib.licenses.bsd3; - maintainers = [ ]; + maintainers = [ lib.maintainers.dotlambda ]; }; }