Files
SandaruKasa 253ec64f93 python3Packages.cmudict: set updateScript & __structuredAttrs
`nix store make-content-addressed` gives the same output
2026-06-08 01:57:14 +03:00

50 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
importlib-metadata,
importlib-resources,
poetry-core,
pytestCheckHook,
nix-update-script,
}:
buildPythonPackage (finalAttrs: {
pname = "cmudict";
version = "1.1.3";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "prosegrinder";
repo = "python-cmudict";
tag = "v${finalAttrs.version}";
hash = "sha256-pOqzezrDlwlVsvBHreHmLKxYKDxllZNs0TgLwxBhy58=";
fetchSubmodules = true;
};
build-system = [ poetry-core ];
dependencies = [
importlib-metadata
importlib-resources
];
nativeCheckInputs = [ pytestCheckHook ];
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";
changelog = "https://github.com/prosegrinder/python-cmudict/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ sandarukasa ];
};
})