From 253ec64f9373db94d50ec67b28d26ae3dd7b3fea Mon Sep 17 00:00:00 2001 From: SandaruKasa Date: Mon, 8 Jun 2026 01:45:36 +0300 Subject: [PATCH] python3Packages.cmudict: set `updateScript` & `__structuredAttrs` `nix store make-content-addressed` gives the same output --- pkgs/development/python-modules/cmudict/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/cmudict/default.nix b/pkgs/development/python-modules/cmudict/default.nix index ad9878c10d9b..819e349b7b97 100644 --- a/pkgs/development/python-modules/cmudict/default.nix +++ b/pkgs/development/python-modules/cmudict/default.nix @@ -6,6 +6,7 @@ importlib-resources, poetry-core, pytestCheckHook, + nix-update-script, }: buildPythonPackage (finalAttrs: { @@ -13,6 +14,8 @@ buildPythonPackage (finalAttrs: { version = "1.1.3"; pyproject = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "prosegrinder"; repo = "python-cmudict"; @@ -32,6 +35,10 @@ buildPythonPackage (finalAttrs: { pythonImportsCheck = [ "cmudict" ]; + passthru = { + updateScript = nix-update-script { }; + }; + meta = { description = "Python wrapper package for The CMU Pronouncing Dictionary data files"; homepage = "https://github.com/prosegrinder/python-cmudict";