python313Packages.cmudict: enable tests

This commit is contained in:
Fabian Affolter
2026-01-05 13:01:22 +01:00
parent 9d729253cf
commit 16a151c310
@@ -1,10 +1,11 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
importlib-metadata,
importlib-resources,
poetry-core,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
@@ -12,9 +13,12 @@ buildPythonPackage (finalAttrs: {
version = "1.1.3";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-9sHLmi/+zvOHvxobk75sYckbxvQXFPGDw+tNWz4f9fY=";
src = fetchFromGitHub {
owner = "prosegrinder";
repo = "python-cmudict";
tag = "v${finalAttrs.version}";
hash = "sha256-pOqzezrDlwlVsvBHreHmLKxYKDxllZNs0TgLwxBhy58=";
fetchSubmodules = true;
};
build-system = [ poetry-core ];
@@ -24,6 +28,8 @@ buildPythonPackage (finalAttrs: {
importlib-resources
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cmudict" ];
meta = {